View source: R/permanova.lmer.R
permanova.lmer | R Documentation |
lmer
Model
This function provides permutation ANOVA for lmer
model.
permanova.lmer(model, nperm = 999, ncore=3, type = c("I", "II", "III", "1", "2", "3"),
...)
model |
Model object returned by |
nperm |
Number of permutation, the default value is 999. |
ncore |
Number of core for parallel computing, the default value is 3. |
type |
The type of ANOVA table requested (using SAS terminology) with Type I being the familiar sequential ANOVA table. |
... |
Use to setup option: seed – Specify a random number generator seed, for reproducible results. |
Permutation ANOVA table.
Dongwen Luo, Siva Ganesh and John Koolaard
# library(predictmeans)
# Oats$nitro <- factor(Oats$nitro)
# fm <- lmer(yield ~ nitro*Variety+(1|Block/Variety), data=Oats)
## Permutation Test for model terms
# permanova.lmer(fm)
# permanova.lmer(fm, type=2)
## Compare to F test
# fm0 <- lme(yield ~ nitro*Variety, random=~1|Block/Variety, data=Oats)
# anova(fm0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.