Re: [R] how to get this kind of binomial distribution simulation number?

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Fri 27 May 2005 - 23:47:42 EST

luan_sheng wrote:

>
> hai, I want to perform a simulation like this:
>
> Suppose that I have one population ,it's size is 500, is composed of x,y
> and z. The probability of x, y and z is respectively is 0.3, 0.5, 0.2. I
> wan to simulate a new same size population based ratio of x, y and z, how
> can I get and assess the number of x, y and z. ?

PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html

I guess you are looking for ?table, but your question is much too unspecific....

Uwe Ligges

> luan
>
> Key Laboratory for Sustainable Utilization of Marine Fisheries Resources,
> Ministry of Agriculture ,Yellow Sea Fisheries Research Institute, Chinese
> Academy of Fishery Sciences, Qingdao 266071,China
>
> __________________________________________________
>
> 雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri May 27 23:56:29 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:10 EST