powered by
Computes \(\Sigma = A^{-1} B (A^{-1})^T \) with provided \(A\) and \(B\) matrices.
compute_sigma(A, B, solver = solve)
the matrix
matrix
Ainv %*% B %*% t(Ainv)
a matrix, generally the .A slot in a sandwich_components object created in estimate_sandwich_matrices
.A
sandwich_components
estimate_sandwich_matrices
a matrix, generally the .B slot in a sandwich_components object created in estimate_sandwich_matrices
.B
the function used to compute the inverse of A, Defaults to solve
A
solve
A <- diag(2, nrow = 2, ncol = 2) B <- matrix(4, nrow = 2, ncol = 2) compute_sigma(A = A, B = B)
Run the code above in your browser using DataLab