Re: [R] multilevel basic lme question

2008-06-15 Thread Dieter Menne
eugen pircalabelu yahoo.com> writes: > I want to use the lme package for a multilevel analysis on the following example: > > math<-c(2, 3,2, 5, 6 ,7 , 7) > > sex<-c(1, 2, 1, 2, 2, 2, 1) > > school_A<-c(1,1,1,2,2,2,2) > > school_B<-c(10,10,10,20,20,20,20) > > mydata<-data.frame(math, sex, school_

[R] multilevel basic lme question

2008-06-15 Thread eugen pircalabelu
Hi R users I want to use the lme package for a multilevel analysis on the following example: > math<-c(2, 3,2, 5, 6 ,7 , 7) > sex<-c(1, 2, 1, 2, 2, 2, 1) > school_A<-c(1,1,1,2,2,2,2) > school_B<-c(10,10,10,20,20,20,20) > mydata<-data.frame(math, sex, school_A, school_B) > mydata School_A and sc