[R] multinomial test

2006-02-22 Thread Li,Qinghong,ST.LOUIS,Molecular Biology
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]]

Re: [R] multinomial test

2006-02-22 Thread jim holtman
?sample sample(1:3, 6, TRUE, prob=c(2/9, 1/6, 11/18)) On 2/22/06, Li,Qinghong,ST.LOUIS,Molecular Biology [EMAIL PROTECTED] 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,

Re: [R] multinomial test

2006-02-22 Thread Berton Gunter
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jim holtman Sent: Wednesday, February 22, 2006 3:33 PM To: Li,Qinghong,ST.LOUIS,Molecular Biology Cc: r-help@stat.math.ethz.ch Subject: Re: [R] multinomial test ?sample sample(1:3, 6, TRUE, prob=c(2/9, 1/6, 11/18)) On 2/22/06

Re: [R] multinomial test

2006-02-22 Thread Li,Qinghong,ST.LOUIS,Molecular Biology
. But for multinomial events, is there a similar function in R? thanks Johnny -Original Message- From: jim holtman [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 5:33 PM To: Li,Qinghong,ST.LOUIS,Molecular Biology Cc: r-help@stat.math.ethz.ch Subject: Re: [R] multinomial test ?sample

Re: [R] multinomial test

2006-02-22 Thread Li,Qinghong,ST.LOUIS,Molecular Biology
,Molecular Biology Cc: r-help@stat.math.ethz.ch Subject: RE: [R] multinomial test Qinghong: R Has an extensive Help system which you should learn to use. help.search('multinomial') ?Multinomial Jim: sample() is wrong -- it gives random samples, not probabilities. -- Bert Gunter Genentech Non

Re: [R] multinomial test

2006-02-22 Thread Sundar Dorai-Raj
To: 'jim holtman'; Li,Qinghong,ST.LOUIS,Molecular Biology Cc: r-help@stat.math.ethz.ch Subject: RE: [R] multinomial test Qinghong: R Has an extensive Help system which you should learn to use. help.search('multinomial') ?Multinomial Jim: sample() is wrong -- it gives random samples