I'm trying to run a linear mixed effects model using
nlme. It appears that lme is not available for R, but
looks like I should be able to run linear models using
nlme. What I tryed looks something like this:
fit <- nlme (Y ~ A + B + C + D,
fixed=list(A,B,C,D),random=Z). This didn't work. I
got this error: Error in reStruct(random, REML REML, data = NULL) :
Object must be a list or a formula
I also tryed creating a function fun <-
function(a,b,c,d) a+b+c+d
Then tryed
fit <- nlme(Y ~ fun(A,B,C,D),
fixed=list(A,B,C,D),random=list(Z)).
I got this error message:
Error in FUN(X[[1]], ...) : Elements in object must be
formulas or pdMat objects
Please help me!
Thank you,
Debbie
__________________________________________________
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._