rinvgamma {MIfuns} | R Documentation |
Generate inverse gamma distribution given n, df, and sigma estimate
rinvgamma(n, df, sigma)
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 |
The rinvgamma
function returns n
sigma estimates for use as simulation parameters.
Developed by Metrum Institute (Bill Knebel, Tim Bergsma, and others).
MIfuns package available from Metrum Institute website (http://metruminstitute.org/
).