rinvgamma: The Inverse Gamma Distribution

View source: R/invgamma.R

rinvgammaR Documentation

The Inverse Gamma Distribution

Description

Random generation for the Inverse Gamma distribution with parameters shape (alpha) and scale (beta).

Usage

rinvgamma(n, shape, scale)

Arguments

n

number of observations. If length(n) > 1, the length is taken to be the number required.

shape

shape and scale parameters. Must be positive, scale strictly.

scale

shape and scale parameters. Must be positive, scale strictly.

Value

numeric vector of length n.

Examples

rinvgamma(10, 0.5, 0.01)


ihmeuw-demographics/demUtils documentation built on Feb. 27, 2024, 1:25 p.m.