Skip to content

Specifying random effects in nlme::lme #965

@simonbmk

Description

@simonbmk

I am having trouble understanding the behaviour of parameters() on lme objects under different specifications of the random effects (corresponding to method (i) and (iv) in the lme documentation of the random = argument).

When the random effect is specified using formula with pipe for grouping, parameters behaves as expected,

library("nlme")
library("parameters")

lme(weight ~ Treatment,
             random = ~ 1 | Litter,
             data = RatPupWeight) |>
    parameters()

However, parameters fail on the same model specified with a list (the names indicating the grouping),

lme(weight ~ Treatment,
             random = list(Litter = ~ 1),
             data = RatPupWeight) |>
    parameters()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions