> I would like to ask how to extract the p-value for the whole model
> from
> summary(lm).
If you mean the p-value given at the end of the summary() printout, it
isn;t held in the summary object. But information to get it is. Using
the ?lm example:
ctl <- c(4.17,5.58,5.18,6.11,4.50,4.61,
1:54 AM
To: r-help@r-project.org
Subject: [R] Extract p-value from lm for the whole model
Dear all,
I would like to ask how to extract the p-value for the whole model
from
summary(lm).
This didn't help a lot summary.lm
summary(lm(speed~dist, cars))
Thanks a lot!
David Winsemius, MD
Her
[R] Extract p-value from lm for the whole model
Dear all,
I would like to ask how to extract the p-value for the whole model from
summary(lm).
This didn't help a lot summary.lm
summary(lm(speed~dist, cars))
Thanks a lot!
[[alternative HTML version
On Feb 5, 2010, at 11:54 AM, Trafim Vanishek wrote:
Dear all,
I would like to ask how to extract the p-value for the whole model
from
summary(lm).
This didn't help a lot summary.lm
I disagree. The help page tells you that "coefficients" has the p-
values sogo ahead and get them:
> summ
Dear all,
I would like to ask how to extract the p-value for the whole model from
summary(lm).
This didn't help a lot summary.lm
summary(lm(speed~dist, cars))
Thanks a lot!
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing
5 matches
Mail list logo