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

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Tue, 26 Apr 2011 22:25:49 -0400

On Tue, Apr 26, 2011 at 2:21 PM, Schatzi <adele_thompson_at_cargill.com> wrote:
> How do I extract the standard error of the parameter estimates?
>
> Also, if I would like to add two parameters together (x+y), can I use this
> equation to calculate the new standard error?:
> x = parameter 1
> y = parameter 2
> xSE = SE parameter 1
> ySE = SE parameter 2
>
> NewSE=(x+y)*sqrt((xSE/x)^2+(ySE/y)^2)

Try taking the square roots of their variance:

> example(nls)
> sqrt(diag(vcov(fm1DNase1)))

      Asym xmid scal
0.07815395 0.08135321 0.03227080
>
> # it gives the same result as another solution
> # offered on this thread
> coef(summary(fm1DNase1))[, "Std. Error"]

      Asym xmid scal
0.07815395 0.08135321 0.03227080

-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com

______________________________________________
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 - 02:31:01 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 - 13:50:34 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