Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Using new values of random intercepts to predict values #418
Comments
|
Just trying to clarify: you want to substitute 2 for the conditional mode/BLUP for all subjects? Wouldn't this be equivalent to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DikobrazDante commentedMay 15, 2017
Hello!
Let's say we have a following prediction:
mod <- y ~ x + (1+x | Subject)Is there a way to predict new values in y, using the predict() function not by specifying only new fixed effects by using newdata arguement, but also by specifying a single random intercept value for which the predictions should be calculated?
According to my logic it should look something like this:
predict(mod, newdata = data.frame(x = seq(1,10, length.out=100), Subject$'(Intercept)' = 2)