calc_quantiles: Calculate the quantiles for an input matrix X

View source: R/bayesian_inference_functions.R

calc_quantilesR Documentation

Calculate the quantiles for an input matrix X

Description

The input matrix X has dimensions S x G, where S is the number of samples and G the number of grid points at which X was evaluated. Calculate quantiles for each grid point, g = 1,2,..G.

Usage

calc_quantiles(X, probs = c(0.025, 0.5, 0.975))

Arguments

X

The matrix for which quantiles are calculated, with dimension S x G

probs

The probability values at which to calculate the quantiles (default: c(0.025, 0.5, 0.975))

Value

The quantiles, a matrix with dimension length(probs) x G


eehh-stanford/baydem documentation built on June 3, 2024, 5:46 p.m.