search for: regsummary

Displaying 1 result from an estimated 1 matches for "regsummary".

Did you mean: gsummary
2010 Aug 10
1
extracting information from an object
...to understand. Perhaps I don't understand "methods" well enough. Below is sample code: #Sample for linear model x <- c(3,7,9,15,18) y <- c(5,4,8,6,9) reg <- lm(y~x) reg #Produces only the regression coefficients and using str(reg) indicates that # that is all that it has. regsummary <- summary(reg) #Produces what I need and str(regsummary) shows that st. errors are part of the object. regsummary$coefficients[1:2, 1:4] rm(y) out <- summary(reg) # works just fine although y is no longer available and reg doesn't look like it # could supply it. Thanks, Dave Howell