Skip to content
Prev 4021 / 398513 Next

orthogonal and nested model

Marcelo Martinez Palao <marmp at fcu.um.es> writes:
I would recommend using the lme (linear mixed-effects) function from
the nlme package for this.  Please ensure that you have R version
0.90.0 installed, then use
 install.packages("nlme")
from within R to obtain and install the package.

If I understand your message correctly, your model specification would be
 fm1 <- lme(abund ~ A * B, random = list(C = ~ 1, D = ~ 1), data = datos)
This will fit the restricted maximum likelihood (REML) estimates.

If you prefer to get maximum likelihood (ML) estimates, include the argument
 method = "ML"
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._