[R-sig-ME] Simulating multilevel dataset

Stuart Luppescu lupp at uchicago.edu
Fri Jul 5 19:25:58 CEST 2013


On Fri, 2013-07-05 at 12:18 -0500, Stuart Luppescu wrote:
> On Fri, 2013-07-05 at 16:53 +0000, Thompson,Paul wrote:
> > You indicate that you have teacher level data and the school level
> data. You do not mention data about conditionality. How can you model
> it if you do not have some relationship to model? In addition, you do
> not specify the manner in which error is incorporated into the model.
> 
> The model would look something like this (in lmer notation): meas ~
> var1.indic + var2.indic + (var1.indic|school) + (var2.indic|school)
> Does this address your questions? 

Oops. I forgot to indicate that there is no intercept. I guess I should
have put a -1 in there.
-- 
Stuart Luppescu -=-=- slu <AT> ccsr <DOT> uchicago <DOT> edu
CCSR at U of C ,.;-*^*-;.,  ccsr.uchicago.edu
     (^_^)/    才文と智奈美の父
[Crash programs] fail because they are based on the theory that, 
with nine women pregnant, you can get a baby a month.
                -- Wernher von Braun



More information about the R-sig-mixed-models mailing list