I'm trying to create a marginal effects plot for a single predictor at each level of a random effect for an lme mixed model with an exponential correlation structure and nested random effects. But, it seems for some reason plot_model can't find the random effects as I get the error:
`id` was not found in model terms. Maybe misspelled?
Error in names(x) <- value :
'names' attribute [5] must be the same length as the vector [4]
In addition: Warning message:
In names(focal_terms) != colnames(datlist) :
longer object length is not a multiple of shorter object length
I've had a dig around in the issues, but can't find anything with the same error. Consequently, I'm struggling to work out what the issue is.
Here's a very minimal reproducible example (my data is more like 1500 lines):
Hi,
I'm trying to create a marginal effects plot for a single predictor at each level of a random effect for an
lme
mixed model with an exponential correlation structure and nested random effects. But, it seems for some reasonplot_model
can't find the random effects as I get the error:I've had a dig around in the issues, but can't find anything with the same error. Consequently, I'm struggling to work out what the issue is.
Here's a very minimal reproducible example (my data is more like 1500 lines):
Any assistance would be most gratefully received! :)