Skip to contents

Scaled Inverse Chi Squared distribution

Usage

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] 0.7552981 0.6805595 1.5079118
rinvchisq(2, 4, 2) ## Scale = 2, degrees of freedom = 4
#> [1] 5.191181 3.240882