[R] Problems extracting p-value from summary(aov(...))
syrvn
mentor_ at gmx.net
Wed Sep 29 12:47:03 CEST 2010
Hi,
I did a aov and used summary to obtain the p-value. I tried many ways to
extract the p-value from
the summary result but failed. Among others I tried the following:
> test.summary <-
> summary(aov(data[,1]~time.points+Error(subject/time.points)))
> test.summary
Error: subject
Df Sum Sq Mean Sq F value Pr(>F)
Residuals 9 0.27467 0.030518
Error: subject:time.points
Df Sum Sq Mean Sq F value Pr(>F)
time.points 2 0.018563 0.0092814 3.1777 0.06578 .
Residuals 18 0.052574 0.0029208
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
>
> as.matrix(test.summary[[1]][,5])
Error in `[.default`(test.summary[[1]], , 5) :
incorrect number of dimensions
> test.summary$"Error: Within"[[1]]$"Pr(>F)"
NULL
> test.summary[[2]][,5]
Error in `[.default`(test.summary[[2]], , 5) :
incorrect number of dimensions
>
Any advise?
Cheers
--
View this message in context: http://r.789695.n4.nabble.com/Problems-extracting-p-value-from-summary-aov-tp2718726p2718726.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list