Skip to content
Prev 7637 / 20628 Next

How to calculate predictions

On Mon, 2012-02-27 at 16:07 -0700, Jake Westfall wrote:
I believe that fitted() is giving fitted values for each observation. 

 length(fitted(math.lme3))
[1] 520573
 length(unique(math.lme3 at frame$sid))
[1] 236994

I have about 520,000 observations nested within 236,994 students. I want
a fitted value for each student at age 15 (which may or may not be
actually observed).