View on GitHub

fastmatrix

Fast computation of some matrices useful in statistics

fastmatrix: Fast computation of some matrices useful in statistics

CRAN status CRAN/METACRAN GitHub last commit CRAN RStudio mirror downloads

Yet another R package for matrices. It contains a small set of functions designed to speed up the computation of certain matrix operations that are commonly used in statistics and econometrics. It provides efficient implementations for the computation of several structured matrices, matrix decompositions and statistical procedures, many of which have minimal memory overhead. Suggested Extension by fastverse.

Currently, the fastmatrix provides support for the following R packages:

fChange india L1pack MVT panelSUR RobRegression SAGM SpatialPack

Resources

Version 0.6-4 of fastmatrix can be found at the CRAN package repository:

Reference Manual

Features

Next, the main functionalities of fastmatrix (latest release, version 0.6-2, Oct 14, 2025):

Our plan in the near future is the implementation of functions to handle:

Installation instructions

To install fastmatrix (version 0.6-4) from CRAN, start R and enter:

install.packages("fastmatrix")

Or install it from its GitHub repository. First install the devtools package.

install.packages("devtools")

Then install fastmatrix using the install_github function in devtools

library(devtools)
install_github("faosorios/fastmatrix", subdir = "pkg")

Alternatively, you can download the source as a tarball (.tar.gz file). Unpack this file (thereby creating a directory named, fastmatrix) and install the package source by executing (at the console prompt)

R CMD INSTALL fastmatrix

Next, you can load the package by using the command: library(fastmatrix)

Providing Feedback

Please report any bugs/suggestions/improvements to Felipe Osorio. If you find these routines useful or not then please let me know. Also, acknowledgement of the use of the routines is appreciated.

To cite the fastmatrix package in publications use:

citation("fastmatrix")

To cite fastmatrix in publications use:

  Osorio, F., Ogueda, A. (2025). Fast computation of some matrices
  useful in statistics. R package version 0.6-4. URL:
  https://faosorios.github.io/fastmatrix/

A BibTeX entry for LaTeX users is

  @Manual{,
    title = {Fast computation of some matrices useful in statistics},
    author = {F. Osorio and A. Ogueda},
    year = {2025},
    note = {R package version 0.6-4},
    url = {https://faosorios.github.io/fastmatrix/},
  }

Papers using fastmatrix

About the Authors

Felipe Osorio is an applied statistician and creator of several R packages

Alonso Ogueda is a doctorate student of mathematics from the Mathematical Sciences Department, George Mason University, USA.