Skip to contents

Attaches to a dyadic covariate array the row/column margins and the Gram matrices of its vectorised (and dyad-transposed) design, so that the regression update inside the MCMC need not recompute them.

Usage

precomputeX(X)

Arguments

X

n x n x p array of dyadic covariates.

Value

X unchanged in value but carrying the extra attributes Xr (n x p row margins), Xc (n x p column margins), mX (n^2 x p vectorised design), mXt (n^2 x p dyad-transposed vectorised design), XX (p x p Gram matrix crossprod(mX)) and XXt (p x p cross Gram matrix crossprod(mX, mXt)).

Author

lame authors