cmm (version 0.12)

DirectSum: DirectSum

Description

Returns the direct sum of two matrices.

Usage

DirectSum(...)

Value

matrix

Arguments

...

List of one or more matrices

Author

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

Details

Standard mathematical direct sum operator.

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

Run this code
 a <- matrix(1:12,3,4)
 DirectSum(a)     #returns a
 DirectSum(a,a)   #returns direct sum of a and a
 DirectSum(a,a,a) #returns direct sum of a, a and a

Run the code above in your browser using DataLab