Skip to content

Extracting semi-partial R^2 from multivariate (repeated measure) mixed model #14

@FrancoiseCardou

Description

@FrancoiseCardou

Hello,

I am using lme4 to fit a multivariate mixed model, where traits are treated as repeated measures on the same sampling unit, with a structure such as: lmer(y~ Trait:(1 + EnvA + EnvB ) -1 + (Trait - 1 | Species)). When I try to extract semi-partial R2 using r2beta, the function throws an error "attribute 'names' [2] must be of same length as vector [1]". If I run the same model without " -1" prior to the random effects, there is no issue.

I am wondering whether there are deeper reasons not to do this or if this is just a glitch?

Thanks in advance,

Françoise

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions