[R] ANOVA Data Error

MatthewJudd matthewjudd87 at gmail.com
Tue Apr 17 19:03:25 CEST 2012


Hello I am having some trouble performing a simple ANOVA in R

I am working with 2001 census tract information regarding religion.  I am
quite a rookie at this whole R experiance, but I would like to improve my
skills.

*I read in my data and subset it accordingly to select only the columns I
desired. *

newottawa=ottawa_census[,c(97,121,124,125,126,127,128,129,130,131,132,133)]
newottawa

*This is the formula  used to try and perform my ANOVA*

anovaottawa=aov(newottawa$RomanCatholic~newottawa$UnitedChurch)
summary(anovaottawa)

****The (-) in the formula is actually a tilde in my R code (but it wont
show up properly in this email) 

*My Error Message:*

Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) : 
  invalid to change the storage mode of a factor
In addition: Warning message:
In model.response(mf, "numeric") :
  using type="numeric" with a factor response will be ignored

I fear that my data is in the wrong format or something of that nature and
thus R will not allow me to perform analysis on it. 

Thank you for your time, and have a good one :) 

--
View this message in context: http://r.789695.n4.nabble.com/ANOVA-Data-Error-tp4565415p4565415.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list