agg: Function to aggregate results from matrix to matrix

View source: R/lib.R

aggR Documentation

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

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

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

awblocker/networkTomography documentation built on May 14, 2022, 10:05 p.m.