Re: [R] Help calculating p-values

2013-02-01 Thread Rolf Turner
This smacks of homework to me. cheers, Rolf Turner On 02/02/2013 12:45 PM, Jin Choi wrote: I am trying to figure out how to calculate p-values for the difference in prevalence of a risk factor between men and women. For example, I find that 277 out of 710 male patients and 125 out

Re: [R] Help calculating p-values

2013-02-01 Thread Bert Gunter
This is very basic stuff, so I think your main problem is statistical, not R related. Try posting on stats.stackexchange.com to get statistical advice or do some reading about differences in proportions, contingency tables, and the like. Incidentally, off the top of my head, I'd say there's no evi

[R] Help calculating p-values

2013-02-01 Thread Jin Choi
I am trying to figure out how to calculate p-values for the difference in prevalence of a risk factor between men and women. For example, I find that 277 out of 710 male patients and 125 out of 305 female patients have obesity, what is the p-value for their difference? If there is a package that c