matlib: Matrix Functions for Teaching and Learning Linear Algebra and Multivariate Statistics

A collection of matrix functions for teaching and learning matrix linear algebra as used in multivariate statistical methods. These functions are mainly for tutorial purposes in learning matrix algebra ideas using R. In some cases, functions are provided for concepts available elsewhere in R, but where the function call or name is not obvious. In other cases, functions are provided to show or demonstrate an algorithm. In addition, a collection of functions are provided for drawing vector diagrams in 2D and 3D.

Version: 0.9.6
Imports: xtable, MASS, rgl, car, methods
Suggests: knitr, rmarkdown, carData, webshot2, markdown
Published: 2022-12-08
DOI: 10.32614/CRAN.package.matlib
Author: Michael Friendly ORCID iD [aut, cre], John Fox [aut], Phil Chalmers [aut], Georges Monette [ctb], Gaston Sanchez [ctb]
Maintainer: Michael Friendly <friendly at>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: no
Language: en-US
Materials: NEWS
In views: NumericalMathematics
CRAN checks: matlib results


Reference manual: matlib.pdf
Vignettes: Vector Spaces of Least Squares and Linear Equations
Properties of determinants
Evaluation of determinants
Eigenvalues and Eigenvectors: Properties
Eigenvalues: Spectral Decomposition
Generalized inverse
Gram-Schmidt Orthogonalization and Regression
Inverse of a matrix
Matrix inversion by elementary row operations
Solving Linear Equations


Package source: matlib_0.9.6.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): matlib_0.9.6.tgz, r-oldrel (arm64): matlib_0.9.6.tgz, r-release (x86_64): matlib_0.9.6.tgz, r-oldrel (x86_64): matlib_0.9.6.tgz
Old sources: matlib archive

Reverse dependencies:

Reverse imports: biplotbootGUI, DIDmultiplegtDYN, dymo, hyperoverlap, IOLS, panelSUR, smallstuff, VIRF


Please use the canonical form to link to this page.