treatments | R Documentation |
A continuous variable to be used as outcome (total_no
), another
to be used as predictor (week
), two factor variables to be used
as predictors (treatment
and fzone
) and another factor
to be used as cluster for the random effects (plot
) of a
Poisson model failing to converge, and an extra variable.
data("treatments")
A data frame with 142 observations on the following 7 variables.
plot
a numeric vector
date
a character vector
total_no
a numeric vector
zone
a character vector
treatment
a character vector
week
a numeric vector
fzone
a character vector
lme4: glmer() warning messages with count data mixed-effects model and how to proceed with model fit
data(treatments)
str(treatments)
library(lme4)
glmm.1 <- glmer(total_no ~ week*treatment*fzone + (1|plot), data = treatments,
family = poisson)
summary(glmm.1)
glmm.11 <- dwmw(glmm.1, verbose = TRUE)
summary(glmm.11)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.