[R] Accessing aov p-value

michael watson (IAH-C) michael.watson at bbsrc.ac.uk
Wed Sep 1 10:12:10 CEST 2004


Hi

I have a data.frame, and want to perform an analysis of variance on each
row.  I am currently using aov() and summary(), but what I want to do is
perform an analysis of variance on each row and then append the F
statistic and the p-value to the end of the row, so I can then use these
to filter the data later on;  and I want to do all this in a for loop.

How can I access the F statistic and the p-value from aov()
programmatically?

Thanks

Mick




More information about the R-help mailing list