| basecor-utils | R Documentation |
Functions used by/to basecor
Map a correlation matrix to theta.
cholcor(theta, p, iLtheta, parametrization = "cpc")
corr2theta(corr)
theta |
numeric parameter vector. |
p |
integer with the dimension, the number of rows/columns of the correlation matrix. |
iLtheta |
integer vector to specify the (vectorized) position
where 'theta' will be placed in the (lower triangle) Cholesky
factorization of the correlation matrix. Default
(missing, or if NULL) and assumes |
parametrization |
character to specify the parametrization used. The available ones are "cpc" (or "CPC") or "sap" (or "SAP"). See Details. The default is "cpc". |
corr |
matrix as a correlation matrix |
matrix with lower triangle as the Cholesky factor
of a correlation matrix, and atttibutes:
parametrization ("cpc" or "sap"), "theta"
the parameter vector under the parametrization,
"iLtheta" the index in the lower triangle matrix for theta,
"logDeterminant" the log determinant for the correlation matrix.
cholcor(): Build the (lower) Cholesky for a correlation matrix
corr2theta(): This function takes a correlation matrix and return
the parameter vector that generates it with the
canonical partial correlation parametrization.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.