> -----Original Message-----
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of Luis Fernando García Hernández
> Sent: Thursday, May 16, 2013 2:41 PM
> To: r-help@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
> test
> with one d.f. So, for example the exact p-value for a calculated chi
> square
> of 14.62 would be 0,0038. I got this data on another software but I
> would
> 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 

   ?pchisq

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,

Dan

Daniel J. Nordlund
Washington State Department of Social and Health Services
Planning, Performance, and Accountability
Research and Data Analysis Division
Olympia, WA 98504-5204


______________________________________________
R-help@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.

Reply via email to