Skip to content

issue with estimate_contrasts #51

@goesjon

Description

@goesjon

Hello,

I have the following problem with the function "estimate_contrasts()":

model <- lmer(data = Data, observationVariable ~ factor1 * factor2 + (1|subjectID))
{no errors or warnings here}
contrasts <- estimate_contrasts(model, levels = "factor1", fixed = "factor2")
{Error in names(levelcols) <- c("Level1", "Level2") :
'names' attribute [2] must be the same length as the vector [0]}

No matter what I do, I always get this error using "estimate_contrasts()" with the "fixed" option. What do I do wrong? Why does the vector have a length of [0]?

Help would be very much appreciated.

Thank you very much and stay healthy!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug 🐛Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions