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 evidence that
the proportions are different. See if I'm right when you do the
correct calculation.
-- Bert
On Fri, Feb 1, 2013 at 3:45 PM, Jin Choi <jin.hj.choi at gmail.com>
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 of 305 female patients have
> obesity, what is the p-value for their difference?
>
> If there is a package that can calculate this in bulk, I would appreciate
> to learn about it!
>
> Thank you
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
--
Bert Gunter
Genentech Nonclinical Biostatistics
Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm