latent_to_iwishart | R Documentation |
Transform latent iid N(0,1)
to Inverse Wishart matrices
Transforms an Inverse Wishart matrix to latent iid
N(0,1)
variables
latent_to_iwishart(x, V_chol, df, lower_chol = FALSE)
latent_from_iwishart(W_chol, V_chol, df, lower_chol = FALSE)
x |
A vector of latent variables identifying the Inverse Wishart matrix,
length |
V_chol |
Transposed inverse of the Cholesky factor of the Inverse
Wishart |
df |
The Wishart degrees of freedom |
lower_chol |
|
W_chol |
The Cholesky factor of the Inverse Wishart matrix |
A list with components
W_chol |
The Cholesky factor of the Inverse Wishart matrix |
B_chol |
The inner Cholesky factor of the inverse Barlett decomposition |
When lower_chol
is FALSE
, W_chol
is
B_chol \%*\% V_chol
, otherwise V_chol \%*\% B_chol
.
A list with components
x |
A vector of latent variables identifying the Wishart matrix,
length |
B_chol |
The inner Cholesky factor of the inverse Barlett decomposition |
This is an internal non-exported function
This is an internal non-exported function
Finn Lindgren
Finn Lindgren
## Not run:
if (interactive()) {
# EXAMPLE1
}
## End(Not run)
## Not run:
if (interactive()) {
# EXAMPLE1
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.