Jun Shen
2014-May-09 13:41 UTC
[R] How to examine the parameter values during iteration (nls)
Hi everyone, I am using nls() to run a simple sigmoid curve type of regression and would like to see how the parameter values change through iterations. How can I see those values? Or ideally, can I even extract those values? For example, nls(Response~E0+Emax*Conc/(EC50+Conc), data=data, start=list(....)) I would like to see how Emax and EC50 values change through iterations. Thanks. Jun [[alternative HTML version deleted]]
Bert Gunter
2014-May-09 14:00 UTC
[R] How to examine the parameter values during iteration (nls)
Read ?nls and note the "trace" argument. Does nls(...,trace = TRUE) not do what you want? By using ?capture.output you could then capture the trace I would think, but I haven't tried. Cheers, Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." H. Gilbert Welch On Fri, May 9, 2014 at 6:41 AM, Jun Shen <jun.shen.ut at gmail.com> wrote:> Hi everyone, > > I am using nls() to run a simple sigmoid curve type of regression and > would like to see how the parameter values change through iterations. How > can I see those values? Or ideally, can I even extract those values? > > For example, > > nls(Response~E0+Emax*Conc/(EC50+Conc), data=data, start=list(....)) > > I would like to see how Emax and EC50 values change through iterations. > Thanks. > > Jun > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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.