DirectSum {cmm}R Documentation

DirectSum

Description

Returns the direct sum of two matrices.

Usage

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

Arguments

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

Details

Standard mathematical direct sum operator.

Value

matrix

Author(s)

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

References

Bergsma, W. P. (1997). Marginal models for categorical data. Tilburg, The Netherlands: Tilburg University Press. 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.

See Also

ConstraintMatrix, DesignMatrix, DirectSum

Examples

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

[Package cmm version 0.1 Index]