View source: R/block_structure.R
BlockStructure | R Documentation |
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
.
BlockStructure(pk)
pk |
vector encoding the grouping structure. |
A symmetric matrix of size length(pk))
.
Other block matrix functions:
BlockDiagonal()
,
BlockMatrix()
# 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.