How to cope with nested random variables #242
Unanswered
fulviomissoni
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I've data with two nested grouping variables and one fixed effect. In particular, I'm interested in error committed by each subjects (first random effect) as distance varying (fixed effect).
Each subject is tested five times with twelve different stimulus (second random effect, nested in subject).
My model is as follows:
model <- lme4(err ~ distance + (distance|stim:subj))
I would to obtain a simple plot with a single line for each subject taking in account random effects so:
preds <- estimate_relation(model, include_random = TRUE)
But, I get an error:
Messaggio di avvertimento:
include_random was set to TRUE, but not all random effects were found in data. Setting include_random = FALSE now.
How can I cope with that situation?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions