I want to test whether the MEAN of two different variables,
(and different number of observations) are the same. I am
trying to use the anova test but it doesn't seem to like that
the number of observations are different:
a=c(1:5)
b=c(1:3)
aov_test=aov(a~b)
Error in model.frame.default(formula = a ~ b,
drop.unused.levels = TRUE) :
variable lengths differ (found for 'b')
-----Original Message-----
You may find this tutorial useful:
http://goanna.cs.rmit.edu.au/~fscholer/anova.php
And you'll need the car package; but become yourself familiar
with Type I, II and III sums of squares models before running
the Anova; the tutorial explains these in detail.
Hope it helps.