[R] p-value from lm

About this list Date view Thread view Subject view Author view

Adam Kornick (akornick@whgrp.com)
23 Nov 1999 15:00:42 -0500



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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b3 on Tue 04 Jan 2000 - 13:34:01 EST