Learn R Programming

networkTomography (version 0.3)

agg: 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

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

Run the code above in your browser using DataLab