Skip to content

issue with plot ggeffects on random effects #3

@francisvolh

Description

@francisvolh

Hello, I was running the tutorial from the website https://ourcodingclub.github.io/tutorials/mixed-models
And bumped into an issue maybe you can still help me with.

I was running the lines for plotting the random effect using ggeffect

ggpredict(mixed.lmer2, terms = c("bodyLength2", "mountainRange"), type = "re") %>% 
   plot() +
   labs(x = "Body Length", y = "Test Score", title = "Effect of body size on intelligence in dragons") + 
   theme_minimal()
  1. It seems to me this needs to load dplyr, which was not stated in the tutorial.
  2. the output graph is not the same as the one in the tutorial, therefore the parameters must be set to modify it a bit. I will try working on it a bit.

Thanks, and sorry for reviving this repo after it seems a while you have had it active!
Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions