spginv: Generalized Inverse of a Sparse Matrix

Description Usage Arguments Details Value Author(s) References Examples

Description

Calucated invesre of the generilzed sparse matrix with sparsesvd function in sparcesvd package and ginv function in MASS package.

Usage

1
spginv(x)

Arguments

x

a sparse real matrix in Matrix package format

Details

see sparsesvd function in sparcesvd package and ginv function in MASS package.

Value

a inverse generalized sparse matrix

Author(s)

Sayyed Reza Alavian

References

[1]Alavian, S. R. (2019). Creating LRQMM package for predicting the breeding value of animals by corrected mixed quantile regression (Unpublished master's thesis). Ferdowsi University Of Mashhad. Mashhad. Iran.[Persian].

Examples

1
2
3
4
5
6
M <- rbind(
  c(20, 10, 15,  0,  2),
  c(10,  5,  8,  1,  0),
  c( 0,  1,  2,  6,  3))
M <- Matrix::Matrix(M, sparse=TRUE)
spginv (M)

LRQMM documentation built on Oct. 4, 2021, 9:08 a.m.

Related to spginv in LRQMM...