Re: [R] how to calculate chisq value in R

From: Bernard Leemon <bernie.leemon_at_gmail.com>
Date: Thu, 7 Feb 2008 14:19:19 -0700

On Thu, Feb 7, 2008 at 1:06 PM, John Kane <jrkrideau_at_yahoo.ca> wrote:

> ?chisq.test
> --- jinjin <hj_suzhou_at_hotmail.com> wrote:
>
> >
> > for example, an expression such as chisq(df=1,ncp=0)
> > ?
> >

perhaps pchisq(chisqvalue, df=1, ncp=0) is what you are looking for to evaluate the probability for a given chi-squre value from its distribution function.

or if by chisq.test you mean how to compute a contingency table chi-sq value, see

http://psych.colorado.edu/~mcclella/psych3101h/StatFinder/twoWayChiSquare.html

gary mcclelland
Colorado

        [[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. Received on Thu 07 Feb 2008 - 21:23:53 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 07 Feb 2008 - 21:30:13 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive