[R] How to Extract Std.Error

Thomas Petzoldt petzoldt at rcs.urz.tu-dresden.de
Thu Oct 30 18:38:07 CET 2003


umeno wrote:

> I would like to know if anyone has any idea of how to extract Std.Error from 
> the regression output.  I know how to extract coefficients, but I could not 
> figure out how to retrieve std. error...

Given a model like this

model <- lm(y~x)

first analyse the data structure of the summary() with

str(summary(model))

looking into this, the following (or something similar for the other
values) should work:

summary(reg)$coefficients[,2]


Thomas P.

-- 
Thomas Petzoldt
Dresden University of Technology
Institute of Hydrobiology          petzoldt at rcs.urz.tu-dresden.de
01062 Dresden                      http://www.tu-dresden.de/fghhihb/




More information about the R-help mailing list