View source: R/cholesky_root.R
cov_to_chol | R Documentation |
These functions compute the Cholesky root elements of a covariance matrix and, conversely, build a covariance matrix from its Cholesky root elements.
cov_to_chol(cov, unique = TRUE)
chol_to_cov(chol)
unique_chol(chol)
cov |
[ It can also be the zero matrix, in which case the Cholesky root is defined as the zero matrix. |
unique |
[ |
chol |
[ |
For cov_to_chol
a numeric
vector
of Cholesky root
elements.
For chol_to_cov
a covariance matrix
.
Other matrix helpers:
check_correlation_matrix()
,
check_covariance_matrix()
,
check_transition_probability_matrix()
,
diff_cov()
,
insert_matrix_column()
,
matrix_diagonal_indices()
,
matrix_indices()
,
sample_correlation_matrix()
,
sample_covariance_matrix()
,
sample_transition_probability_matrix()
,
stationary_distribution()
cov <- sample_covariance_matrix(4)
chol <- cov_to_chol(cov)
all.equal(cov, chol_to_cov(chol))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.