[R] How to assign the p value from >anova to a variable ?

Claus Atzenbeck claus.atzenbeck at freenet.de
Mon Nov 21 23:44:04 CET 2005


On Mon, 21 Nov 2005, Gao Fay wrote:

> If I need to assign the p-value from >anova(lm(y~x1*x2)) to a variable temp.
> How can I do that?

Maybe this is what you want:
anova(...)$Pr[3]

Claus




More information about the R-help mailing list