Calculates decomposition of covariance matrix
Calculates a decomposition of the provided covariance matrix, V, using the chosen method.
decomp.cov(V, method = "eigen")
V |
A (symmetric, positive-definite) covariance matrix. |
method |
A character vector specifying the method used to decompose |
The matrix V is assumed to be symmetric and positive definite. Symmetry is checked, but the positive definiteness of the matrix is not. Returns a decomposition matrix U such that V = U %*% t(U).
Returns a decomposition matrix U such that V = U %*% t(U).
Joshua French
cov.sp
data(toydata) U <- decomp.cov(toydata$V, method = "chol") #range(toydata$V - U %*% t(U))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.