In lm depend to research question we can get output by summary(model) and summary.aov(model). In the first condition we can get details for lm with estimate and t value (the subgroups indicated in Bold):
For instance interaction of moisture (dry, moist,wet) and species(acetosa,acetosella, maritimus) would be like following:
> summary(model1)
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 27.46217 0.99102 27.711 < 2e-16 ***
speciesacetosa -24.74597 1.03466 -23.917 < 2e-16 ***
speciesmaritimus -3.77972 1.03879 -3.639 0.000299 ***
moisturemoist -1.32010 1.04714 -1.261 0.207936
moisturewet -2.99489 1.03908 -2.882 0.004096 **
......
we can also get ANOVA output with summary.aov(model) indicating main effects and their interactions without subgroups:
>summary.aov(model1)
Df Sum Sq Mean Sq F value Pr(>F)
species 2 49261 24630 2410.690 < 2e-16 ***
moisture 2 463 231 22.652 3.39e-10 ***
soil 2 182 91 8.883 0.000159 ***
......
For lm it is clear what to do but how we can get outputs without details and levels in the GLM and GAM ? I mean if i want to know about only main effect of moisture, species and their interactions which simple method do you recommend?
Warm regards,
Mehdi