Re: [R] A simple question regarding plot of nls objects

From: Peter Dalgaard <P.Dalgaard_at_biostat.ku.dk>
Date: Fri, 11 May 2007 11:46:26 +0200

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
>
Point-5 maybe? This works nicely for me in R 2.5.0. (On openSuSE 10.2 if that matters)

-- 
   O__  ---- Peter Dalgaard             Ă˜ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard_at_biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-help_at_stat.math.ethz.ch 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.
Received on Fri 11 May 2007 - 09:56:12 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 11 May 2007 - 11:31:58 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.