draw.inv.wishart {MultiRNG} | R Documentation |
Pseudo-Random Number Generation under Inverted Wishart Distribution
Description
This function implements pseudo-random number generation for an inverted Wishart distribution with pdf
is positive definite,
, and
is symmetric and positive definite, where
and
are the degrees of freedom and the inverse scale matrix, respectively.
Usage
draw.inv.wishart(no.row,d,nu,inv.sigma)
Arguments
no.row |
Number of rows to generate. |
d |
Number of variables to generate. |
nu |
Degrees of freedom. |
inv.sigma |
Inverse scale matrix. |
Value
A matrix ofcontaining Wishart deviates in the form of rows. To obtain the Inverted-Wishart matrix, convert each row to a matrix where rows are filled first.
See Also
Examples
mymat<-matrix(c(1,0.2,0.3,0.2,1,0.2,0.3,0.2,1), nrow=3, ncol=3)
draw.inv.wishart(no.row=1e5,d=3,nu=5,inv.sigma=mymat)
[Package MultiRNG version 1.2.4 Index]