rinvgamma {MIfuns}R Documentation

Generate inverse gamma distribution

Description

Generate inverse gamma distribution given n, df, and sigma estimate

Usage

rinvgamma(n, df, sigma)

Arguments

n the number of values to return
df the degrees of freedom for the distribution. This value reflects the uncertainity in the distribution. A reasonable starting estimate would be a value between the number of patients and the number of observations used to obtain the sigma estimates
sigma vector of sigma estimates

Value

The rinvgamma function returns n sigma estimates for use as simulation parameters.

Author(s)

Developed by Metrum Institute (Bill Knebel, Tim Bergsma, and others).

References

MIfuns package available from Metrum Institute website (http://metruminstitute.org/).


[Package MIfuns version 3.2.9 Index]