Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bdiagMatrix

Create a block diagonal matrix


Description

Create a block diagonal matrix

Usage

bdiagMatrix(mlist, fill = 0)

Arguments

mlist

a list of matrices

fill

value to fill the non-diagnoal elements

Value

a block diagonal matrix

See Also

bdiag in Matrix

Examples

m1 <- bdiagMatrix(list(matrix(1:4, 2), diag(3)))
m2 <- bdiagMatrix(list(matrix(1:4, 2), diag(3)),fill = NA)

GDINA

The Generalized DINA Model Framework

v2.8.0
GPL-3
Authors
Wenchao Ma [aut, cre, cph], Jimmy de la Torre [aut, cph], Miguel Sorrel [ctb], Zhehan Jiang [ctb]
Initial release
2020-05-23

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.