Matrix (version 0.99-3)

mm: A sample sparse model matrix

Description

A model matrix used in an example by Koenker and Ng. This is a sparse matrix with 1850 rows and 712 columns but only 8758 non-zero entries. It is a "dgCMatrix" object.

Usage

data(mm)

Arguments

References

Roger Koenker and Pin Ng (2003). SparseM: A sparse matrix package for R; J. of Statistical Software, 8 (6), http://www.jstatsoft.org/

Examples

Run this code
data(mm)
data(y)
class(mm)
dim(mm)
str(mm)
str(y)
sparse.sol <- solve(crossprod(mm), crossprod(mm, y))
str(sparse.sol)

Run the code above in your browser using DataLab