[R] Storing data from a test as a vector or matrix
wwreith
reith_william at bah.com
Wed May 4 15:55:07 CEST 2011
I just finished a MANOVA test and got the following output:
> summary(M, test="Pillai")
Df Pillai approx F num Df den Df Pr(>F)
as.factor(X) 3 1.1922 6.5948 36 360 < 2.2e-16 ***
Residuals 129
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
I would like to store the values Df=3, Pillai=1.1922, P-value, etc. as a
vector.
I have tried the following code that did not work:
> S=summary(M, test="Pillai")
>S1<-as.vector(S$Df, S$Pillai)
but I am getting an error every time. I have also tried just S$Df. Is there
a way to find out if "Df" and "Pillai" are correct headers to reference. For
example maybe it is "df" or "degreesfreedom" etc.
I know the concept works because I have used it for logistic regression.
>v1 <- as.vector(exp(L1$coefficients))
The difference is that I know "coefficients" is the correct header to refer
to.
--
View this message in context: http://r.789695.n4.nabble.com/Storing-data-from-a-test-as-a-vector-or-matrix-tp3495626p3495626.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list