I've noticed with certain datasets that when I try to do an anova and test for main effects and interaction for two explanatory variables, sometimes the main effect results are given but not the interaction results. For example, ex1 = aov(Score ~ var1*var2, data=myData) summary(ex1) gives me only the main effects for var1 and var2, but not the interaction. I also tried ex1 = aov(Score ~ var1+var2+var1:var2, data=myData) summary(ex1) but it still only gives the main effects. The only way I can get the interaction results is if I test for ONLY that, e.g. ex1 = aov(Score ~ var1:var2, data=myData) summary(ex1) Why would the interaction not be tested in the first two examples? Thanks, Gabe [[alternative HTML version deleted]]
On Wed, 08-Apr-2009 at 12:59PM -0700, Gabriel Murray wrote: |> I've noticed with certain datasets that when I try to do an anova and test |> for main effects and interaction for two explanatory variables, sometimes |> the main effect results are given but not the interaction results. For |> example, |> |> ex1 = aov(Score ~ var1*var2, data=myData) |> summary(ex1) Could it be that there are no degrees of freedom left? That's about my best guess without enough information. |> ______________________________________________ |> R-help at r-project.org mailing list |> https://stat.ethz.ch/mailman/listinfo/r-help |> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html |> and provide commented, minimal, self-contained, reproducible code. Nothing you sent is reproducible. -- ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~. ___ Patrick Connolly {~._.~} Great minds discuss ideas _( Y )_ Average minds discuss events (:_~*~_:) Small minds discuss people (_)-(_) ..... Eleanor Roosevelt ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.