Balikkan matriks persegi pasti positif simetris dari dekomposisi Choleski. Dengan cara yang sama, hitung \((X'X)^{-1}\) dari bagian (\(R\)) dekomposisi QR dari \(X\).
chol2inv(x, size = NCOL(x), LINPACK = FALSE)
| Parameter | Deskripsi |
|---|---|
x |
a matrix. The first size columns of the upper triangle contain the Choleski decomposition of the matrix to be inverted. |
size |
the number of columns of x containing the Choleski decomposition. |
LINPACK |
logical. Defunct and ignored (with a warning for true value). |
# NOT RUN {
cma <- chol(ma <- cbind(1, 1:3, c(1,3,7)))
ma %*% chol2inv(cma)
# }