Hi Rick,
In your simulation book, your last example in the linear mixed model section is a multilevel model problem. Could you present an example with code for a repeated measures example? Using your example with weight loss, I have recreated a simulation where the errors are correct. However, when I introduce random components, it messes up the simulation. Thus, I tried looking at the last example concerning families and heights and used the code with a repeated measures example of mine. However, again, the random effects components did not average out to the parameters I specified. Any help is greatly appreciated as I have been struggling with this simulation for weeks now.
Thanks,
Tim