Skip to content
Prev 25584 / 398502 Next

nlme and start=list()

Andrew Beckerman <a.p.beckerman at stir.ac.uk> writes:
First the good news - you don't need to use nlme to fit a polynomial
model.  A polynomial is linear in the coefficients so you can use lme,
which is much easier than nlme.

lme(Frames ~ Manlength + I(Manlength^2), random = Manlength)

The problem with your usage of nlme is that you gave 3 values for the
starting estimates of the fixed-effects parameters and there is only
one parameter for fixed-effects the way you wrote it.  You should have
used "fixed=list(a+b+c ~ 1)" (or, equivalently, "fixed=a+b+c~1") but
you really don't want to use nlme for a linear model.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._