An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130605/25388c00/attachment.pl>
lme function cannot find object
2 messages · Pfeiffer, Steven, Ben Bolker
Pfeiffer, Steven <pfeiffss <at> miamioh.edu> writes:
I have been using the function lme() from package 'nlme' for several months now without any problems. Suddenly, it cannot find a factor in my data. Is this a new bug of some kind? My code and output are below. Thanks for your help! -Steve Pfeiffer
You have an extra comma at the end of the first line of
your lme code (indicated with ^^^), so R thinks your interaction term is a
separate argument and tries to intepret it outside the context
of the formula ...
library("nlme")
fit.1<-lme(soil.moisture ~ Trenching + DaysSinceEvent,
^^^^^
+ Trenching:DaysSinceEvent,
random = ~ DaysSinceEvent | Plot,
data=Dat.middle,
method="ML"
)