[R] How to examine the parameter values during iteration (nls)

Bert Gunter gunter.berton at gene.com
Fri May 9 16:00:11 CEST 2014


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.



More information about the R-help mailing list