https://github.com/cran/Matrix
Raw File
Tip revision: eb4c20765b4b752635d8622a4a369347b4b69bbf authored by Douglas Bates on 11 July 2005, 00:00:00 UTC
version 0.97-3
Tip revision: eb4c207
mm.Rd
\name{mm}
\alias{mm}
\docType{data}
\title{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 \code{"dgCMatrix"} object.
}
\usage{data(mm)}
%\details{}
%\source{}
\references{
  Roger Koenker and Pin Ng (2003).
  SparseM: A sparse matrix package for R;
  \emph{J. of Statistical Software}, \bold{8} (6),
  \url{http://www.jstatsoft.org/}
}
\examples{
data(mm)
data(y)
class(mm)
dim(mm)
str(mm)
str(y)
sparse.sol <- solve(crossprod(mm), crossprod(mm, y))
str(sparse.sol)
}
\keyword{datasets}
back to top