[R] chi-square statistics

Robert A LaBudde ral at lcfltd.com
Fri Aug 24 07:07:38 CEST 2007

At 12:41 AM 8/24/2007, Karen wrote:
>I'm wondering if R has functions to return pvalues with given x-squares and
>df. I googled for it but couldn't seem to find one. Appreciate any helps
>An example: df=4, x<- c(33.69, 32.96, 30.90) which are the statistic for
>chi-square, I'd like to get the corresponding pvalues for each values in x.

? pchisq


pchisq(x, df, lower.tail=FALSE)

Robert A. LaBudde, PhD, PAS, Dpl. ACAFS  e-mail: ral at lcfltd.com
Least Cost Formulations, Ltd.            URL: http://lcfltd.com/
824 Timberlake Drive                     Tel: 757-467-0954
Virginia Beach, VA 23464-3239            Fax: 757-467-2947

"Vere scire est per causas scire"

More information about the R-help mailing list