Dear all, When I construct an nlme model object by calling nlme(...)->mod.nlme, this object can be used in xyplot(). Something like
xyplot(x,y,...... ...... ind.predict<-predict(mod.nlme) ...... ) is working fine in console environment. But the same structure is not working in a user defined function. It seems the "mod.nlme" created in a user defined function can not be called in xyplot(). Why is that? Appreciate any comment. (The error message says " Error in using packet 1, object "model" not found") Thanks. Jun Shen ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.