| g2inv | R Documentation |
A generalized inverse is usually not unique. Some programs use this algorithm to get a unique generalized inverse matrix. This uses the SWEEP operator and works for non-square matrices also.
g2inv(A, eps=1e-08)
A |
a matrix to be inverted |
eps |
A value less than this is considered zero. |
See 'SAS Technical Report R106, The Sweep Operator: Its Importance in Statistical Computing' by J. H. Goodnight for details.
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.