Skip to content
Prev 11334 / 398502 Next

Extracting F and p from aov() - tricksy solution

On Tue, 22 May 2001, Mark Myatt wrote:

            
eg
data(warpbreaks)
LZ.aov <- summary(aov(breaks ~ wool + tension, data = warpbreaks))
as.data.frame(LZ.aov[[1]][,4:5])
             F value      Pr(>F)
wool        3.339316 0.073613669
tension     7.536651 0.001377778
Residuals         NA          NA


This is for an aov() with a single response. The complicated structure is
because you can have multiple responses, which would give a list of anova
tables as the summary.

	-thomas

Thomas Lumley			Asst. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._