Skip to content
Prev 172077 / 398503 Next

Extract statistics from lm()

Hi,
summaryD9 <- summary(lm.D9 <- lm(weight ~ group))
(coefD9 <- coef(summaryD9))
coefD9[, "t value"]
coefD9[, "Pr(>|t|)"]

In order to get an overview of the structure of an object
you can use the str function as in:

str(summaryD9)

HTH,
Tobias