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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.