[R] can nlme do the complex multilevel model?

ronggui 0034058 at fudan.edu.cn
Thu Jun 9 18:21:08 CEST 2005


data from multilevel units,first sample the class ,and then the student in calss.following  is the 2-level model. and the level-1 model deals with the student,and the level-2 model deals with the class level the students belong to.

Level-1 Model

	Y = B0 + B1*(ZLEAD) + B2*(ZBUL) + B3*(ZSHY) + R

Level-2 Model
	B0 = G00 + U0
	B1 = G10 + G11*(ZWARMT) + U1
	B2 = G20 + G21*(ZWARMT) + G22*(ZABLET) + U2
	B3 = G30 + G31*(ZWARMT) + G32*(ZSHYT1) + U3

 				
i have seen the ?lme in nlme,but still have no ideal how to do.

ps:i know how to do if the Level-2 Model are:

	B0 = G00 +  U0
	B1 = G10 +  U1
	B2 = G20 +  U2
	B3 = G30 +  U3



2005-06-10

------
Deparment of Sociology
Fudan University

Blog:www.sociology.yculblog.com




More information about the R-help mailing list