[R] Chi square 1 d.f.
Nordlund, Dan (DSHS/RDA)
NordlDJ at dshs.wa.gov
Fri May 17 00:10:36 CEST 2013
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Luis Fernando García Hernández
> Sent: Thursday, May 16, 2013 2:41 PM
> To: r-help at r-project.org
> Subject: [R] Chi square 1 d.f.
> Dear Fellows,
> I am trying to find the exact p-value for some values using chisquare
> with one d.f. So, for example the exact p-value for a calculated chi
> of 14.62 would be 0,0038. I got this data on another software but I
> like to know how to do it on R. Any advice will be really appreciated.
> Thanks for your help!
> All the best!
Take a look at
I think what you want is
pchisq(14.62, 1, lower.tail=FALSE)
Your other software has it wrong, or you are not interpreting/describing something correctly.
Hope this is helpful,
Daniel J. Nordlund
Washington State Department of Social and Health Services
Planning, Performance, and Accountability
Research and Data Analysis Division
Olympia, WA 98504-5204
More information about the R-help