Skip to content
Prev 30146 / 398503 Next

Trying to make a nested lme analysis

Where is the rats data available?

It looks as if you have an lme model with both a fixed effect for
Treatment and a random effect for Treatment.  I would guess that you
want to have a fixed effect for treatment and random effects for

 Rat %in% Treatment 

and 

 Liver %in% Rat %in% Treatment

If so you would first create a factor for Rat %in% Treatment, say rTrT
by 

 rats$rTrt = getGroups(~ 1 | Treatment/Rat, data = rats, level = 2)

then fit the lme model as

 lme(Glycogen ~ Treatment, data = rats, random = ~ 1|rTrT/Liver)


"Ronaldo Reis Jr." <chrysopa at insecta.ufv.br> writes: