build_XtX | R Documentation |
Build the Tp x Tp
matrix XtX using the Matrix package
build_XtX(X)
X |
|
Block diagonal Tp x Tp
Matrix (object) where each p x p
block is tcrossprod(matrix(X[t,]))
X'X is a one-time computing cost. Special cases may have more efficient computing options, but the Matrix representation is important for efficient computations within the sampler.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.