[R] How can I extract information from list which class is nls
Joshua Wiley
jwiley.psych at gmail.com
Wed Apr 27 03:24:48 CEST 2011
> 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
More information about the R-help
mailing list