[R] ANCOVA with defined error terms
hpdutra at yahoo.com
Thu Aug 20 14:39:44 CEST 2009
I tried running the analysis the way you suggested but here is the error
that I get
> track.aov <- aov(mice ~ coon+block*veget*fruit*time -
+ + Error(block/plot), data = track)
In aov(kotz.mice ~ kotz.coon + block * veget * fruit * time -
block:veget:fruit:time + :
Error() model is singular
Error in UseMethod("anova") : no applicable method for "anova"
I'm not sure you can use the function anova for an aov object. I tried
summary and it also didn't work. Did you mean something else?
Richard M. Heiberger wrote:
> track.aov <- aov(mice ~ coon
> + block*veget*fruit*time - block:veget:fruit:time
> + Error(block/plot), data = track)
> I think this is what you are looking for. This model in words says,
> What is the effect of the four-way crossing after adjusting for
> the covariate coon? We don't have enough degrees of freedom for
> the full crossing, so remove the four-way interaction.
> anova() gives the sequential sums of squares of (multi-degree of
> freedom) effects. Be sure that the five variables (block, veget, fruit,
> time, plot) are factors. I am assuming time is a factor here.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
View this message in context: http://www.nabble.com/ANCOVA-with-defined-error-terms-tp25055311p25061223.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help