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.

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.