ID EN
Vector & List

chol2inv

R Base 3.6.2 🇮🇩 Bahasa Indonesia

Balikkan matriks persegi pasti positif simetris dari dekomposisi Choleski. Dengan cara yang sama, hitung \((X'X)^{-1}\) dari bagian (\(R\)) dekomposisi QR dari \(X\).

Syntax

R
chol2inv(x, size = NCOL(x), LINPACK = FALSE)

Arguments

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).

Return Value

Kebalikan dari matriks yang dekomposisi Choleskinya diberikan. Hasil yang gagal dari kode LAPACK yang mendasarinya akan menghasilkan kesalahan yang memberikan kode kesalahan positif: ini hanya dapat diinterpretasikan dengan mempelajari kode FORTRAN secara mendetail.

Contoh

Example
R
# NOT RUN {
cma <- chol(ma  <- cbind(1, 1:3, c(1,3,7)))
ma %*% chol2inv(cma)
# }

See Also

chol solve.