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.7142789 1.5154244 1.6435521
rinvchisq(2, 4, 2) ## Scale = 2, degrees of freedom = 4
#> [1] 1.097227 2.797669