[R] can nlme do the complex multilevel model?

From: ronggui <0034058_at_fudan.edu.cn>
Date: Fri 10 Jun 2005 - 02:21:08 EST


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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Jun 10 02:24:27 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:28 EST