sample_gammas: Sample from gamma distributions

Description Usage Arguments Value

Description

Sample from multiple independent gamma distributions. The parameters of the gamma distribution are derived using methods of moments from the means and standard errors. Produces a unique sample of size n using each element in mean and sd.

Usage

1
2
sample_gammas(n, mean = NULL, se = NULL, shape = NULL, rate = NULL,
  col_names = NULL)

Arguments

n

Number of samples to draw.

mean

Vector of means.

se

Vector of standard errors.

col_names

Column names to returned matrix.

Value

Matrix with each column a sample from a gamma distribution.


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