[R] A simple question regarding plot of nls objects

Stefan Grosse singularitaet at gmx.net
Fri May 11 12:31:20 CEST 2007


The example works fine for me on R 2.5.0 and WinXP...

Mielke Hans wrote:
> Hi,
>
> I was trying to run the example of Indomethacin kinetics from the book:
>
> ## From Pinheiro/Bates, Mixed-Effects-Models in S and S-Plus,
> ## Springer, Second Printing 2001, Section 6.2
> library(nlme)
> plot(Indometh)
> fm1Indom.nls <- nls(conc~SSbiexp(time,A1,lrc1,A2,lrc2), data=Indometh)
> summary(fm1Indom.nls)
> plot(fm1Indom.nls,Subject~resid(.),abline=0)
> ## ....
>
> the last plot command gives me the error message: Subject not found in data
>
> What point am I missing?
>
> Thanks in advance,
> Hans
>



More information about the R-help mailing list