constDiagMatrix | R Documentation |
Specify a matrix with constant values on the diagonal and on the off-diagonals. Such matrices can be used to vary the degree of dependency in covariate matrices, for example when evaluating accuracy of KL-divergence estimation algorithms.
constDiagMatrix(dim = 1, diag = 1, offDiag = 0)
dim |
Dimension |
diag |
Value at the diagonal |
offDiag |
Value at off-diagonals |
A dim
-by-dim
matrix
constDiagMatrix(dim = 3, diag = 1, offDiag = 0.9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.