Re: [R] multinomial test

From: jim holtman <jholtman_at_gmail.com>
Date: Thu 23 Feb 2006 - 10:32:56 EST

?sample

sample(1:3, 6, TRUE, prob=c(2/9, 1/6, 11/18))

On 2/22/06, Li,Qinghong,ST.LOUIS,Molecular Biology < Qinghong.Li@rdmo.nestle.com> wrote:
>
> Hi All,
>
> What is the R function for computing multinomial distribution, e.g.
> f(2,1,3; 2/9, 1/6, 11/18, 6)?
>
> That is, a total of 6 trials, event 1's p1=2/9, x1=2, event 2's p2=1/6,
> x2=1, and event 3's p3=11/18, x3=3.
>
> thanks,
> Johnny
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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
>

--
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What the problem you are trying to solve?

	[[alternative HTML version deleted]]

______________________________________________
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 Thu Feb 23 10:39:59 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:39 EST