DirectSum                package:cmm                R Documentation

_D_i_r_e_c_t_S_u_m

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

     Returns the direct sum of two matrices.

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

     DirectSum(m1, m2, p.tr = 0, p.ll = 0)

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

      m1: matrix. Top left matrix

      m2: matrix. Lower right matrix

    p.tr: numeric. Padding value for the top right matrix

    p.ll: numeric. Padding value for the lower left matrix

_D_e_t_a_i_l_s:

     Standard mathematical direct sum operator.

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

     matrix

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

     W. P. Bergsma w.p.bergsma@lse.ac.uk

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

     Bergsma, W. P. (1997). _Marginal models for categorical data_.
     Tilburg, The Netherlands: Tilburg University Press. <URL:
     http://stats.lse.ac.uk/bergsma/pdf/bergsma_phdthesis.pdf>

     Bergsma, W. P., Croon, M. A., & Hagenaars, J. A. P. (2009).
     Marginal models for dependent, clustered, and longitudunal
     categorical data. Berlin: Springer.

_S_e_e _A_l_s_o:

     'ConstraintMatrix', 'DesignMatrix', 'DirectSum'

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

      a <- matrix(1:12,3,4)
      DirectSum(a,a)
      DirectSum(a,a,1,2)

