[R] lme code help

2012-03-14 Thread harkiran
Hi guys, Got a few days left and I need to model a random effect of species on the body mass (logM) and temperature (K) slopes. This is what i've done so far that works: model1<-lme(logSSP~logM + K,random=~1|species,data=data1) model2<-lme(logSSP~logM + K,random=~K|species,data=data1) model3<-

[R] random effect of species in lme on slope taking into account two variables

2012-03-14 Thread Bhogal, Harkiran
ffect of spp on both slopes of logM and K # but this code doesn't work so how do i change the code to have a random effect of species on slopes of logM and K together??? Please help :( Harkiran [[alternative HTML version deleted]] __