This function samples from the inverse gamma distribution.
rinvgamma(n, shape, scale)
Number of values to sample.
Scale parameter (1/rate).
Random sample from the inverse gamma distribution.
# Draw samples from inverse gamma distribution with shape parameter 1
# and scale parameter 1
samples = rinvgamma(100, shape=1, scale=1)
# Calculate density of samples
densities = dinvgamma(samples, shape=1, scale=1)
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.