p-value question

Aug 14, 2015 at 8:45 AM
Edited Aug 14, 2015 at 9:09 AM
Hi,

I'd like to know how to access the p-value in a regression model.
The code below will print out regression statistics, including the p-value, but
how can I access the p-value in m?

> m <- lm(y ~ u + v + w)
> summary(m)
Aug 18, 2015 at 11:14 AM
After some googling I found out how you can access the p-values of the coefficients:

> summ <- summary(m)
> pvalues <- summ$coefficients[, 4]