mysum {mixstock} | R Documentation |
calculates summary statistics of one or more columns of MCMC output
mysum(x, names = NULL) mysumvec(x,names=NULL)
x |
a numeric matrix representing MCMC output |
names |
vector of column names |
a slight variant on the standard numeric summary: calculates
mean, median, standard deviation, and lower and upper 90 and 95 percent
quantiles. mysum
gives a table (original data as rows,
various stats as columns), while mysumvec
collapses the
answer to a vector
a numeric vector of results, appropriately named
x = matrix(runif(1000),ncol=2,dimnames=list(NULL,c("A","B"))) mysum(x) mysumvec(x)