[Mattice-commits] r148 - in pkg: R inst/doc
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Sun Jan 11 05:36:49 CET 2009
Author: andrew_hipp
Date: 2009-01-11 05:36:49 +0100 (Sun, 11 Jan 2009)
New Revision: 148
Modified:
pkg/R/summarizingAnalyses.R
pkg/inst/doc/maticce.pdf
Log:
cleaning up summary function
Modified: pkg/R/summarizingAnalyses.R
===================================================================
--- pkg/R/summarizingAnalyses.R 2009-01-11 04:10:22 UTC (rev 147)
+++ pkg/R/summarizingAnalyses.R 2009-01-11 04:36:49 UTC (rev 148)
@@ -78,22 +78,23 @@
print.hansenSummary <- function(x, ...) {
## This just formats a hansenSummary object so that it is readable on the screen; you can still store the summary object and extract elements as needed
hansenSummary <- x
- message(paste("\nSummarizing hansenBatch analyses over", length(hansenSummary$modelsMatrix), "trees and", dim(hansenSummary$modelsMatrix[[1]])[1], "models"))
- message("-----------------------------------------------------------")
- message("ESTIMATED SUPPORT FOR CHANGES OCCURRING AT DESIGNATED NODES")
- message("Averaged over all trees, thus multiplying the clade distribution by the mean support for the model:")
+ cat(paste("\nSummarizing hansenBatch analyses over", length(hansenSummary$modelsMatrix), "trees and", dim(hansenSummary$modelsMatrix[[1]])[1], "models"))
+ cat("\n-----------------------------------------------------------")
+ cat("\nESTIMATED SUPPORT FOR CHANGES OCCURRING AT DESIGNATED NODES")
+ cat("\nAveraged over all trees:\n")
print(hansenSummary$nodeWeightsMatrix$allNodes)
- message("\nSupport conditioned on trees that possess the node")
+ cat("\nSupport conditioned on trees that possess the node\n")
print(hansenSummary$nodeWeightsMatrix$unnormalized)
#message("\nESTIMATED SUPPORT FOR NUMBER OF PARAMETERS IN THE MODEL")
#message("The properties of this support value have not been studied and are likely to be biased strongly toward the median value of\nK, as K is largest at the median values (they are distributed according to Stirling numbers of the first kind).")
#print(hansenSummary$kMatrix)
- message("\nMODEL-AVERAGED PARAMETERS")
- message(paste("alpha =", hansenSummary$modelAvgAlpha))
- message(paste("sigma^2 =", hansenSummary$modelAvgSigmaSq))
- if(any(dim(hansenSummary$thetaMatrix) > 12)) message(paste("theta matrix is too long to display; access through the summary object"))
+ cat("\nMODEL-AVERAGED PARAMETERS")
+ cat("\nalpha =", hansenSummary$modelAvgAlpha)
+ cat("\nsigma^2 =", hansenSummary$modelAvgSigmaSq)
+ if(any(dim(hansenSummary$thetaMatrix) > 12)) message(paste("\ntheta matrix is too long to display; access through the summary object"))
else {
- message("theta matrix, with branches as the columns and trees as the rows:")
+ cat("\ntheta matrix, with branches as the columns and trees as the rows:\n")
print(hansenSummary$thetaMatrix)
+ cat('\n')
}
}
\ No newline at end of file
Modified: pkg/inst/doc/maticce.pdf
===================================================================
(Binary files differ)
More information about the Mattice-commits
mailing list