resources:lme
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| resources:lme [2015/06/24 11:30] – anthony | resources:lme [2019/05/22 16:08] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 55: | Line 55: | ||
| >terms in the model and I would advocate performing a likelihood ratio | >terms in the model and I would advocate performing a likelihood ratio | ||
| >test comparing the two models | >test comparing the two models | ||
| - | > | + | > |
| >< | >< | ||
| >fm <- glmer(SameSite~BreedSuc1+Sex+(1|Bird), | >fm <- glmer(SameSite~BreedSuc1+Sex+(1|Bird), | ||
| Line 62: | Line 62: | ||
| > | > | ||
| ></ | ></ | ||
| - | > | ||
| >Even though the function is called anova it will, in this case, | >Even though the function is called anova it will, in this case, | ||
| >perform a likelihood ratio test (LRT). | >perform a likelihood ratio test (LRT). | ||
| >AIC and BIC if you prefer to compare models according to one of those | >AIC and BIC if you prefer to compare models according to one of those | ||
| > | > | ||
| - | > | ||
| > | > | ||
| >you want to compare models that have the, apparently unnecessary term | >you want to compare models that have the, apparently unnecessary term | ||
| >for Sex in them. The way I would approach the model building is first | >for Sex in them. The way I would approach the model building is first | ||
| >to reduce the model to | >to reduce the model to | ||
| - | > | ||
| >< | >< | ||
| >fm1 <- lmer(SameSite~BreedSuc1+(1|Bird), | >fm1 <- lmer(SameSite~BreedSuc1+(1|Bird), | ||
| ></ | ></ | ||
| - | > | ||
| >You could then compare | >You could then compare | ||
| - | > | ||
| >< | >< | ||
| > | > | ||
| - | ></ | + | ></ |
| - | > | + | |
| >which I presume will give a large p-value for the LRT, so we prefer | >which I presume will give a large p-value for the LRT, so we prefer | ||
| >the simpler model, fm1. After that, I would compare | >the simpler model, fm1. After that, I would compare | ||
| - | > | ||
| >< | >< | ||
| >fm2 <- lmer(SameSite ~ 1 + (1|Bird), family=" | >fm2 <- lmer(SameSite ~ 1 + (1|Bird), family=" | ||
| ></ | ></ | ||
resources/lme.1435159836.txt.gz · Last modified: (external edit)
