Test that:
mydata <- as.numeric(mydata)
anova(lm(mydata ~ mygroup))

2005/6/18, Lei Jiang <lj22@u.washington.edu>:
> 
> I am having trouble figuring out this one.
> 
> I want to do a one way anvoa with 13 levels. mydata is in a vector with
> length 65. each level has 5 repeats. but it contains NA.
> 
> I made mygroup<-gl(13, 5, 65, labels=(...))
> 
> anova(lm(mydata ~ mygroup))
> 
> it gives following error:
> Error in model.frame(formula, rownames, variables, varnames, extras,
> extranames, :
> invalid variable type
> 
> Can you please help?? Millions of thanks.
> 
> Lei Jiang
> 
> Department of Chemsitry
> University of Washington
> Box 351700
> Seattle, WA 98195
> Phone: 206-616-6882
> Fax: 206-685-8665
> 
> ______________________________________________
> 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
> 



-- 
ADDRESS: Bioinformatics Center, Shanghai Institutes for Biological Sciences, 
Chinese Academy of Sciences
320 Yueyang Road, Shanghai 200031, P.R.China
TELEPHONE: 86-21-54920086

	[[alternative HTML version deleted]]


