Thanks a bunch.
-Original Message-
From: Jingru Dai [mailto:[EMAIL PROTECTED]
Sent: Monday, January 14, 2008 10:25 PM
To: [EMAIL PROTECTED]; r-help@r-project.org
Subject: Re: [R] Retrieve results from chisq.test programmatically
Hi, Coyne
chisq.test(x)$p.value can retrieve the p-value
Hi, Coyne
chisq.test(x)$p.value can retrieve the p-value of the test.
chisq.test(x)$statistic will give you the x-squared result, if you only
want the number chisq.test(x)$statistic[[1]] can retrieve the numeric
value. So you can simply write a loop to do the test and save the
results in some
Hello,
I would like to run a series of chisq.test() and store results (x-square,
df, p-value) in a matrix for further analysis, but don't know how to do
such. Currently I run the command line for each set of data at a time and
it is time consuming.
Thank you for your help.
--My Coyne
3 matches
Mail list logo