Skip to content

Instantly share code, notes, and snippets.

@monogenea
Created October 7, 2019 18:34
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save monogenea/546d7b1b97595c5549946484e4ec2d7f to your computer and use it in GitHub Desktop.
# Set optimization pars
ctrl <- lmeControl(opt="optim")
lmm6.2 <- update(lmm6, .~., random = ~nutrient|popu/gen, control = ctrl)
lmm7.2 <- update(lmm7, .~., random = ~nutrient|reg/popu/gen, control = ctrl)
anova(lmm6, lmm6.2, lmm7, lmm7.2) # both models improved
anova(lmm6.2, lmm7.2) # similar fit; lmm6.2 more parsimonious
summary(lmm6.2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment