blkdiag: Block diagonal matrix

Description Usage Arguments Value Author(s) See Also Examples

Description

Block diagonal concatenation of input arguments.

Usage

1

Arguments

...

Variable number of matrices M1, M2, ....

Value

A block diagonal matrix diag(M1, M2, ...).

Author(s)

Giovanni M. Marchetti

See Also

diag

Examples

1
2
X <- c(1,1,2,2); Z <- c(10, 20, 30, 40); A <- factor(c(1,2,2,2))
blkdiag(model.matrix(~X+Z), model.matrix(~A))

ggm documentation built on May 29, 2017, 9:40 a.m.

Search within the ggm package
Search all R packages, documentation and source code