Re: [R] need help for chi-squared test

2011-01-06 Thread Greg Snow
.org] On Behalf Of David Winsemius > Sent: Thursday, January 06, 2011 1:14 PM > To: kiotoqq > Cc: r-help@r-project.org > Subject: Re: [R] need help for chi-squared test > > > On Jan 6, 2011, at 2:34 PM, kiotoqq wrote: > > > > > I used chisq.test(read.table(&q

Re: [R] need help for chi-squared test

2011-01-06 Thread David Winsemius
On Jan 6, 2011, at 2:34 PM, kiotoqq wrote: I used chisq.test(read.table("C:/Users/Maggy/Downloads/dust.asc", header=TRUE)) So, where did you download this data and when is your homework due? and got this Pearson's Chi-squared test data: read.table("C:/Users/Maggy/Downloads/dust.

Re: [R] need help for chi-squared test

2011-01-06 Thread kiotoqq
I used chisq.test(read.table("C:/Users/Maggy/Downloads/dust.asc", header=TRUE)) and got this Pearson's Chi-squared test data: read.table("C:/Users/Maggy/Downloads/dust.asc", header = TRUE) X-squared = 5226.164, df = 3735, p-value < 2.2e-16 and I think it should be right for the who

Re: [R] need help for chi-squared test

2011-01-06 Thread David Winsemius
On Jan 6, 2011, at 1:23 PM, kiotoqq wrote: I've got a dataset which looks like this in the beginning: cbr dust smoking expo 1 0 0.20 15 2 0 0.25 14 3 0 0.25 18 4 0 0.25 14 5 0 0.25 14 (till no. 1240, anyway