rinvwish: Simulate draws from the inverse Wishart distribution

Description Usage Arguments Details Value

View source: R/RcppExports.R

Description

Simulate draws from the inverse Wishart distribution

Usage

1
rinvwish(n, v, S)

Arguments

n

An integer, the number of draws.

v

An integer, the degrees of freedom of the distribution.

S

A numeric matrix, the scale matrix of the distribution.

Details

Employs the Bartlett Decomposition (Smith & Hocking 1972). Output exactly matches that of riwish from the MCMCpack package if the same random seed is used.

Value

A numeric array of matrices, each of which is one simulation draw.


fditraglia/ivdoctr documentation built on June 12, 2020, 7:08 p.m.