sample_dirichlets: Sample matrices using a Dirichlet distribution

Description Usage Arguments Value

View source: R/sample-pars.R

Description

A wrapper using the function hesim::rdiricihlet_mat. Maintains the row and column names of mat.

Usage

1

Arguments

n

Number of samples to draw.

mat

A matrix where each row is a separate vector of shape parameters.

Value

An array of matrices representing a sample from the dirichlet distribution for each row.


InnovationValueInitiative/IVI-RA documentation built on Oct. 20, 2020, 10:02 p.m.