fastmatrix0.6 package

Fast Computation of some Matrices Useful in Statistics

array.mult

Array multiplication

asSymmetric

Force a matrix to be symmetric

bezier

Computation of Bezier curve

bracket.prod

Bracket product

ccc

Lin's concordance correlation coefficient

cg

Solve linear systems using the conjugate gradients method

cholupdate

Rank 1 update to Cholesky factorization

circulant

Form a symmetric circulant matrix

comm.info

Compact information to construct the commutation matrix

comm.prod

Matrix multiplication envolving the commutation matrix

commutation

Commutation matrix

corAR1

AR(1) correlation structure

corCS

Compound symmetry correlation structure

cov.MSSD

Mean Square Successive Difference (MSSD) estimator of the covariance m...

cov.weighted

Weighted covariance matrices

dupl.cross

Matrix crossproduct envolving the duplication matrix

dupl.info

Compact information to construct the duplication matrix

dupl.prod

Matrix multiplication envolving the duplication matrix

duplication

Duplication matrix

equilibrate

Equilibration of a rectangular or symmetric matrix

frank

Frank matrix

geomean

Geometric mean

hadamard.prod

Hadamard product of two matrices

hankel

Form a symmetric Hankel matrix

harris.test

Test for variance homogeneity of correlated variables

helmert

Helmert matrix

is.lower.tri

Check if a matrix is lower or upper triangular

jacobi

Solve linear systems using the Jacobi method

jarquebera.test

Jarque-Bera test for univariate normality

kronecker.prod

Kronecker product on matrices

krylov

Computes a Krylov matrix

kurtosis

Mardia's multivariate skewness and kurtosis coefficients

ldl

The LDL decomposition

lu-methods

Reconstruct the L, U, or X matrices from an LU object

lu

The LU factorization of a square matrix

lu2inv

Inverse from LU factorization

Mahalanobis

Mahalanobis distance

matrix.inner

Compute the inner product between two rectangular matrices

matrix.norm

Compute the norm of a rectangular matrix

matrix.polynomial

Evaluates a real general matrix polynomial

matrix.sqrt

Matrix square root

mchol

The modified Cholesky factorization

mediancenter

Mediancenter

minkowski

Computes the p-norm of a vector

moments

Central moments

ols.fit-methods

Fit a linear model

ols.fit

Fitter functions for linear models

ols

Fit linear regression model

power.method

Power method to approximate dominant eigenvalue and eigenvector

rball

Generation of deviates uniformly distributed in a unitary ball

ridge

Ridge regression

rmnorm

Multivariate normal random deviates

rsphere

Generation of deviates uniformly located on a spherical surface

scaled.condition

Scaled condition number

seidel

Solve linear systems using the Gauss-Seidel method

sherman.morrison

Sherman-Morrison formula

sweep.operator

Gauss-Jordan sweep operator for symmetric matrices

symm.info

Compact information to construct the symmetrizer matrix

symm.prod

Matrix multiplication envolving the symmetrizer matrix

symmetrizer

Symmetrizer matrix

vec

Vectorization of a matrix

vech

Vectorization the lower triangular part of a square matrix

WH.normal

Wilson-Hilferty transformation for chi-squared variates

whitening

Whitening transformation

wilson.hilferty

Wilson-Hilferty transformation

Small set of functions to fast computation of some matrices and operations useful in statistics and econometrics. Currently, there are functions for efficient computation of duplication, commutation and symmetrizer matrices with minimal storage requirements. Some commonly used matrix decompositions (LU and LDL), basic matrix operations (for instance, Hadamard, Kronecker products and the Sherman-Morrison formula) and iterative solvers for linear systems are also available. In addition, the package includes a number of common statistical procedures such as the sweep operator, weighted mean and covariance matrix using an online algorithm, linear regression (using Cholesky, QR, SVD, sweep operator and conjugate gradients methods), ridge regression (with optimal selection of the ridge parameter considering several procedures), omnibus tests for univariate normality, functions to compute the multivariate skewness, kurtosis, the Mahalanobis distance (checking the positive defineteness), and the Wilson-Hilferty transformation of gamma variables. Furthermore, the package provides interfaces to C code callable by another C code from other R packages.