BlockStructure {fake}R Documentation

Block structure

Description

Generates a symmetric matrix of size (length(pk) x length(pk)) where entries correspond to block indices. This function can be used to visualise block indices of a matrix generated with BlockMatrix.

Usage

BlockStructure(pk)

Arguments

pk

vector encoding the grouping structure.

Value

A symmetric matrix of size length(pk)).

See Also

Other block matrix functions: BlockDiagonal(), BlockMatrix()

Examples

# Example 1
BlockMatrix(pk = c(2, 3))
BlockStructure(pk = c(2, 3))

# Example 2
BlockMatrix(pk = c(2, 3, 2))
BlockStructure(pk = c(2, 3, 2))

[Package fake version 1.4.0 Index]