Function to aggregate results from matrix to matrix

Description

Defaults to mean, SD, limits, and given quantiles. Used to limit memory consumption from MCMC runs.

Usage

1
agg(mat, q = c(0.05, 0.16, 0.5, 0.84, 0.95))

Arguments

mat

input numeric matrix to summarize

q

quantiles of mat's columns to provide in summary matrix

Value

matrix with each row corresponding to a summary measure and each column corresponding to a column of mat

Examples

1
2
mat <- matrix(rnorm(5e3), ncol=5)
agg(mat)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.