I\'m running many regressions and am only interested in the effect on the coefficient and p-value of one particular variable. So, in my script, I\'d like to be able to just extr
Instead of the number you can put directly the name
coef(summary(fit))[,'Pr(>|z|)']
the other ones available from the coefficient summary:
Estimate Std. Error z value Pr(>|z|)