Re: [R] comparing proportions

2011-02-10 Thread Robert A LaBudde
t A LaBudde To: array chip Cc: Bert Gunter ; r-h...@stat.math.ethz.ch Sent: Thu, February 10, 2011 12:54:44 PM Subject: Re: [R] comparing proportions 1. If you use a random effects model, you should make Subject the random factor. I.e., a random intercepts model with 1|Subject. Group is a fixed effect: You have

Re: [R] comparing proportions

2011-02-10 Thread Mike Marchywka
nd the system of interest.  Date: Thu, 10 Feb 2011 14:17:29 -0800 From: arrayprof...@yahoo.com To: r...@lcfltd.com CC: r-h...@stat.math.ethz.ch; gunter.ber...@gene.com Subject: Re: [R] comparing proportions Robert, thank you! I tried all 3 models you suggested. Since

Re: [R] comparing proportions

2011-02-10 Thread array chip
e 0.15 to 0.85, so maybe regular linear model may not be appropriate?   Thank you,   John     From: Robert A LaBudde To: array chip Cc: Bert Gunter ; r-h...@stat.math.ethz.ch Sent: Thu, February 10, 2011 12:54:44 PM Subject: Re: [R] comparing proportions 1.

Re: [R] comparing proportions

2011-02-10 Thread Robert A LaBudde
ted in. So do I really need a mixed model here? Thanks again John From: Bert Gunter To: Robert A LaBudde Cc: array chip Sent: Thu, February 10, 2011 10:04:06 AM Subject: Re: [R] comparing proportions Robert: Yes, exactly. In an offlist email exchange, he clarified this for me, and I suggest

Re: [R] comparing proportions

2011-02-10 Thread Robert A LaBudde
ataset, or I may be wrong? Thanks John From: Bert Gunter Sent: Wed, February 9, 2011 3:58:05 PM Subject: Re: [R] comparing proportions 1. Is this a homework problem? 2. ?prop.test 3. If you haven't done so already, get and consult a basic statis

Re: [R] comparing proportions

2011-02-09 Thread array chip
here when the response variable is actually proportions. I guess prop.test() can not be used with my dataset, or I may be wrong? Thanks John       From: Bert Gunter Sent: Wed, February 9, 2011 3:58:05 PM Subject: Re: [R] comparing proportions 1. Is t

[R] comparing proportions

2011-02-09 Thread array chip
Hi, I have a dataset that has 2 groups of samples. For each sample, then response measured is the number of success (no.success) obatined with the number of trials (no.trials). So a porportion of success (prpop.success) can be computed as no.success/no.trials. Now the objective is to test if th

[R] Comparing Proportions Among Groups

2009-04-08 Thread Isabella Ghement
Hi everyone, I am trying to compare proportions among groups using the logistic regression approach as follows: 1) Fit the model log(p_i/(1-p_i)) = M + G_i, where p_i is the probability of success in group i and G_i is the effect of group i, i=1,..,I. 2) Test the hypotheses: Ho: G_1 = G_2 =

Re: [R] Comparing proportions between groups

2008-03-28 Thread Lila86
Okay, I will do that, thank you. prop.test seems to work, too, someone wrote me?! prop.test(x=c(40,100), n=c(200,300)) I tried it and it seems fine.. is it the same or is chisq.test better? I will read a bit about chi-square tests now.. Thanks a lot, Lila Richard Cotton wrote: > > > Lila86

Re: [R] Comparing proportions between groups

2008-03-28 Thread Richard Cotton
Lila86 wrote: > > I have two groups (men and women) and I know per group how many of them > smoke or don't smoke (women 40 of 200; men 100 of 300). I would like to > know how I can compare in R if men and women differ significantly in their > smoking. However, because there are more men in the

Re: [R] Comparing proportions between groups

2008-03-28 Thread Chuck Cleland
On 3/28/2008 5:33 AM, Lila86 wrote: > Hello there, > > I have two groups (men and women) and I know per group how many of them > smoke or don't smoke (women 40 of 200; men 100 of 300). I would like to know > how I can compare in R if men and women differ significantly in their > smoking. However,

[R] Comparing proportions between groups

2008-03-28 Thread Lila86
Hello there, I have two groups (men and women) and I know per group how many of them smoke or don't smoke (women 40 of 200; men 100 of 300). I would like to know how I can compare in R if men and women differ significantly in their smoking. However, because there are more men in the sample than