bdiagNA: Create a Block Diagonal Matrix with NA outside the diagonal

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/misc.R

Description

Build a block diagonal matrix with NA values outside the diagonal given several building block matrices.

Usage

1

Arguments

...

individual matrices or a list of matrices.

Details

This function is usefull to build the correlation matrices, when only partial knowledge of the correlation exists.

Value

A block diagonal matrix with NA values outside the diagonal.

Author(s)

Kornelius Rohmeyer [email protected]

See Also

gMCP

Examples

1
bdiagNA(diag(3), matrix(1/2,nr=3,nc=3), diag(2))

gMCP documentation built on May 29, 2017, 5:14 p.m.