[R] chisq.test and anova problems

From: Richard Mendes <mendes150_at_gmail.com>
Date: Mon 06 Jun 2005 - 23:43:39 EST

we just started to use R and having some problems that no one in our school could solve. I hope someone here can help me out.

the first problem is with the chisquare test. we want to exclude the missing values from the data. we used na.omit and made two new variables.

now we want to use the chi square method but get the error x and y must have the same length.

how do i use the chisquare method were i exclude the missing values ? and can i use this method if there is a difference in length.

the second problem is with anova in the data set we are working on we have to use this method on multiple variables with a difference in length, can this be done. this is the syntax we used and the error is stated behind.

anova(lm(test~test1)) and the error states variable length differ.

i think there has to be a way to use this method on differences in variable lengths does anybode know how to do this

thanks in advance for your help


R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jun 07 00:19:54 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:23 EST