scatter                 package:gllm                 R Documentation

_C_r_e_a_t_e _a _f_i_l_t_e_r _m_a_t_r_i_x _f_r_o_m _a _s_u_m_m_a_r_y _a_r_r_a_y _o_f _i_n_d_i_c_e_s

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

     Create a filter matrix that multiplying the vector of counts from
     a  complete contingency table, gives a collapsed contingency
     table.

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

     scatter(y,s) 

_A_r_g_u_m_e_n_t_s:

       y: is the observed contingency table. Provides a target length
          only.

       s: is a vector of indices, one for each cell of the full
          (unobserved)  contingency table, representing the appropriate
          cell of 'y'

_V_a_l_u_e:

       S: 

     {A matrix of orthogonal columns of 1s and 0s}

_A_u_t_h_o_r(_s):

     David L Duffy

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

     y<-double(3)
     z<-1:5
     z %*% scatter(y,c(1,1,2,3,3))
     ## 1+2, 3, 4+5

