Scaled Inverse Chi Squared distribution

rinvchisq(n = 1L, nu = 1, scale = 1)

Arguments

n

Number of random samples

nu

degrees of freedom of inverse chi square

scale

Scale of inverse chi squared distribution (default is 1).

Value

a vector of inverse chi squared deviates.

Examples

rinvchisq(3, 4, 1) ## Scale = 1, degrees of freedom = 4
#> [1] 1.751169 1.694131 2.473799
rinvchisq(2, 4, 2) ## Scale = 2, degrees of freedom = 4
#> [1] 0.8921713 0.6741667