| plants {trouBBlme4SolveR} | R Documentation |
Data for the SO question lme4 error: boundary (singular) fit: see ?isSingular.
Description
Five variables, being one continuous to use as outcome
(Weight), and four factors, of which two (Rep and
PLANT) are used as clusters for the random effects of a
singular linear mixed model (Weight ~ 1 + (1|Rep:PLANT)).
Usage
data("plants")
Format
A data frame with 536 observations on the following 5 variables.
Linea factor with levels
Line1Line10Line11Line12Line13Line14Line15Line16Line17Line18Line19Line2Line20Line21Line22Line23Line24Line25Line26Line27Line28Line29Line3Line30Line31Line32Line33Line34Line35Line36Line37Line38Line39Line4Line40Line41Line42Line43Line44Line45Line46Line47Line48Line49Line5Line50Line51Line52Line53Line54Line55Line56Line57Line58Line59Line6Line60Line61Line62Line63Line64Line65Line66Line67Line7Line8Line9Repa factor with levels
12Weighta numeric vector
PLANTa factor with levels
1234Xa factor with levels
2412211113142223
Source
lme4 error: boundary (singular) fit: see ?isSingular
Examples
data(plants)
str(plants)
library(lme4)
fit <- lmer(Weight ~ 1 + (1|PLANT:Rep), data = plants)
summary(fit)
fit2 <- dwmw(fit)
summary(fit2)