Description Usage Arguments Details Value References Examples
View source: R/rPsuedoWishart.R
Generate n
random matrices, distributed according to the Wishart distribution with parameters Sigma
and df
, W_p(Sigma, df).
1 | rPsuedoWishart(n, df, Sigma, covariance = FALSE, simplify = "array")
|
n |
integer: the number of replications. |
df |
numeric parameter, “degrees of freedom”. |
Sigma |
positive definite (p * p) “scale” matrix, the matrix parameter of the distribution. |
covariance |
logical on whether a covariance matrix should be generated |
simplify |
logical or character string; should the result be
simplified to a vector, matrix or higher dimensional array if
possible? For |
If X_1, ..., X_m is a sample of m independent multivariate Gaussians with mean vector 0, and covariance matrix Sigma, the distribution of M = X'X is W_p(Sigma, m).
A numeric array of dimension p * p * n
, where each array is a positive semidefinite matrix, a realization of the Wishart distribution W_p(Sigma, df)
Diaz-Garcia, Jose A, Ramon Gutierrez Jaimez, and Kanti V Mardia. 1997. “Wishart and Pseudo-Wishart Distributions and Some Applications to Shape Theory.” Journal of Multivariate Analysis 63 (1): 73–87. doi:10.1006/jmva.1997.1689.
1 | rPsuedoWishart(2, 5, diag(1, 20))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.