mm                  package:Matrix                  R Documentation

_A _s_a_m_p_l_e _s_p_a_r_s_e _m_o_d_e_l _m_a_t_r_i_x

_D_e_s_c_r_i_p_t_i_o_n:

     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.

_U_s_a_g_e:

     data(mm)

_R_e_f_e_r_e_n_c_e_s:

     Roger Koenker and Pin Ng (2003). SparseM: A sparse matrix package
     for R; _J. of Statistical Software_, *8* (6), <URL:
     http://www.jstatsoft.org/>

_E_x_a_m_p_l_e_s:

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

