Description Usage Arguments Value Author(s) See Also Examples
Block diagonal concatenation of input arguments.
1 |
... |
Variable number of matrices |
A block diagonal matrix diag(M1, M2, ...)
.
Giovanni M. Marchetti
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.