Skip to content

A question from a newbee...

3 messages · jlamoral, Martin Maechler, Michael Dondrup

#
Hello .
I have  a little question ..
I work with Anova (aov) and Manova (manova) and want to print some result in a 
text file. I  see the results with the summary function or the summary.aov 
function but i do not know how to save the differents probabilities of error 
in a value.
Sorry for my poor English

Thanks a lot.
#
jlamoral> Hello .  I have a little question ..  I work with
    jlamoral> Anova (aov) and Manova (manova) and want to print
    jlamoral> some result in a text file. I see the results with
    jlamoral> the summary function or the summary.aov function
    jlamoral> but i do not know how to save the differents
    jlamoral> probabilities of error in a value.  Sorry for my
    jlamoral> poor English

If you use

 myAov <- aov(.......)
 str(myAov)

and even 
  
 Saov <- summary(myAov)
 str(Saov)

should `see' the STRucture (typically list components) of the
resulting object.

{but I have to admit I do not fully understand what you mean by
 ``differents probabilities of error''}

    jlamoral> Thanks a lot.
    jlamoral> -- Lamoral Julien

You're welcome

Martin Maechler <maechler at stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO C16	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1228			<><
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Martin Maechler wrote:
I guess you mean the p-values (shown as 'Pr(>F)') of the test. 
I do not know a way to extract these values from an aov object or
summary(aov).
You could of course sink() the output to a file.

But if you used my.lm <- lm(...) and my.anova <- anova(my.lm) instead,
you can easily 
access the values by
Michael Dondrup
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._