Skip to content
Prev 56672 / 398498 Next

Could anyone tell me how to extract pvalue from "lm" fitting?

Frank,

try the following, not all of which are directly relevant, but which
explain the approach. If your lm is called "my.lm":

names(summary(my.lm))
coefficients(summary(my.lm))
class(coefficients(summary(my.lm)))
coefficients(summary(my.lm))[,4]

I hope that this helps.

Andrew
On Sun, Oct 03, 2004 at 10:57:47PM -0400, Frank Duan wrote: