g2inv | R Documentation |
Generalized inverse is usually not unique. Some programs use this algorithm to get a unique generalized inverse matrix. This uses SWEEP operator and works for non-square matrix also.
g2inv(A, eps=1e-08)
A |
a matrix to be inverted |
eps |
Less than this value is considered as zero. |
See 'SAS Technical Report R106, The Sweep Operator: Its importance in Statistical Computing' by J. H. Goodnight for the detail.
g2 inverse
Kyun-Seop Bae k@acr.kr
Searle SR, Khuri AI. Matrix Algebra Useful for Statistics. 2e. John Wiley and Sons Inc. 2017.
G2SWEEP
A = matrix(c(1, 2, 4, 3, 3, -1, 2, -2, 5, -4, 0, -7), byrow=TRUE, ncol=4) ; A
g2inv(A)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.