Re: [R] Storing data from a test as a vector or matrix

2011-05-04 Thread wwreith
I figured out that attributes is the command that I was trying to find. It allowed me to find out that I was needing to use "stats" not "Df" or "Pillai" etc. Following command worked. > S1<-as.vector(S$stats[1,]) However when I try the same thing with summary.aov it is not working. >SA<-summary.

Re: [R] Storing data from a test as a vector or matrix

2011-05-04 Thread wwreith
SA gives the output: Response IPS1 : Df Sum Sq Mean Sq F value Pr(>F) as.factor(WSD) 3 3.3136 1.10455 23.047 5.19e-12 *** Residuals 129 6.1823 0.04793 --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 . . . There are 11 more just

Re: [R] Storing data from a test as a vector or matrix

2011-05-04 Thread Ivan Calandra
Hi, I would suggest you to check the structure of your summary object with str(), like this: S <- summary(M, test="Pillai") str(S) You will then see how to access each element of it. If you cannot manage to do it yourself, then provide an example, or at least the output from str(s). By the wa

[R] Storing data from a test as a vector or matrix

2011-05-04 Thread wwreith
I just finished a MANOVA test and got the following output: > summary(M, test="Pillai") Df Pillai approx F num Df den DfPr(>F) as.factor(X) 3 1.1922 6.5948 36360 < 2.2e-16 *** Residuals 129 --- Signif. codes: 0 '