Re: [R] How can I extract information from list which class is nls

From: Joshua Wiley <jwiley.psych_at_gmail.com>
Date: Tue, 26 Apr 2011 18:24:48 -0700

> I would generally use the coef() extractor function if
> it's available (and it is for nls()). ?nls has an example:
>
>  coef(summary(fm1DNase1))

I knew about coef() on model objects, but I did not know it had methods for their summaries. What wonderful information!

Josh

>
> which is a matrix from which you can get the SEs:
>
>  coef(summary(fm1DNase1))[,"Std. Error"]
>
> or
>
>  coef(summary(fm1DNase1))[, 2]
>
> Schatzi,
> As to your other question about 'adding two parameters', that
> doesn't make sense to me. Can you provide a sensible example?
> In any case you would no doubt have to look at the covariance
> matrix of the parameter estimates (with vcov()).
>
> Peter Ehlers



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. Received on Wed 27 Apr 2011 - 01:29:17 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 Wed 27 Apr 2011 - 02:40:33 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.

list of date sections of archive