Description Usage Arguments Value See Also
View source: R/corrmat_covariance.R
Calculate the covariance matrix of a correlation matrix. The matrix can be in vectorized form.
1 2 3 4 5 6 | corrmat_covariance(
matr,
fisher_z = FALSE,
nonpositive = c("stop", "force", "ignore"),
use_cpp = TRUE
)
|
matr |
the correlation matrix. can be vectorized from triangle2vector |
fisher_z |
if true, calculate the covariance matrix of a fisher-Z transformed correlation matrix. It is assumed that the correlations are already Fisher transformed, and the matrix will under go the Inverse Fisher Transformation. |
nonpositive |
error handling when matrix is not positive definite. can be one of 'stop', 'force', 'ignore'. if 'force' is chosen, nearPD will be used. |
use_cpp |
whether to use c++ source code. default true. |
the covariance matrix
Other corrcalc:
corrcalc_c()
,
corrmat_covariance_from_datamatrix()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.