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.

Line

a factor with levels Line1 Line10 Line11 Line12 Line13 Line14 Line15 Line16 Line17 Line18 Line19 Line2 Line20 Line21 Line22 Line23 Line24 Line25 Line26 Line27 Line28 Line29 Line3 Line30 Line31 Line32 Line33 Line34 Line35 Line36 Line37 Line38 Line39 Line4 Line40 Line41 Line42 Line43 Line44 Line45 Line46 Line47 Line48 Line49 Line5 Line50 Line51 Line52 Line53 Line54 Line55 Line56 Line57 Line58 Line59 Line6 Line60 Line61 Line62 Line63 Line64 Line65 Line66 Line67 Line7 Line8 Line9

Rep

a factor with levels 1 2

Weight

a numeric vector

PLANT

a factor with levels 1 2 3 4

X

a factor with levels 24 12 21 11 13 14 22 23

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)


[Package trouBBlme4SolveR version 0.1.1 Index]