[R-sig-eco] aov vs. glm

Chris Howden chris at trickysolutions.com.au
Fri Nov 11 01:30:30 CET 2011


It would help if u posted the results so we know how different.

But have a look at the defaults for a call to glm. Are they the same as for lm?

There are some differences in the output for glm and lm objects when
using summary.

Chris Howden
Founding Partner
Tricky Solutions
Tricky Solutions 4 Tricky Problems
Evidence Based Strategic Development, IP Commercialisation and
Innovation, Data Analysis, Modelling and Training

(mobile) 0410 689 945
(fax / office)
chris at trickysolutions.com.au

Disclaimer: The information in this email and any attachments to it are
confidential and may contain legally privileged information. If you are not
the named or intended recipient, please delete this communication and
contact us immediately. Please note you are not authorised to copy,
use or disclose this communication or any attachments without our
consent. Although this email has been checked by anti-virus software,
there is a risk that email messages may be corrupted or infected by
viruses or other
interferences. No responsibility is accepted for such interference. Unless
expressly stated, the views of the writer are not those of the
company. Tricky Solutions always does our best to provide accurate
forecasts and analyses based on the data supplied, however it is
possible that some important predictors were not included in the data
sent to us. Information provided by us should not be solely relied
upon when making decisions and clients should use their own judgement.

On 11/11/2011, at 10:25, "Lara R. Appleby 04"
<Lara.R.Appleby.04 at alum.dartmouth.org> wrote:

> I'm trying to basically do a two way ANOVA on the dependent variable (clutchsize) with the two independent variables (treatment and species). It seems that there are three ways I can say this in R:
>
> 1. glm(clutchsize~treatment*species)
> 2. aov(clutchsize~treatment*species)
> 3. anova(lm(clutchsize~treatment*species)
>
> Methods 2 and 3 yield equivalent results, but Method 1 is completely different!
>
> Any idea why?
>
> Lara Appleby
>
> _______________________________________________
> R-sig-ecology mailing list
> R-sig-ecology at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology



More information about the R-sig-ecology mailing list