[R] p-value from lm
Adam Kornick
akornick at whgrp.com
Tue Nov 23 21:00:42 CET 1999
I'd like to automatically plot the p-value and r^2 of a linear model.
I know that I can extract r^2 with
foo <- lm(y~x)
a <- summary(foo)
a$r.squared
I can't find any similar functionality to obtain the p-value based on
the ftest
a$fstatistic returns the actual f-test and df, but not the p-value.
Any thoughts?
Thanks,
Adam
using R-0.65.1
Win32
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list