powered by
Build the Tp x Tp matrix XtX using the Matrix() package
Tp x Tp
build_XtX(X)
Block diagonal Tp x Tp Matrix (object) where each p x p block is tcrossprod(matrix(X[t,]))
p x p
tcrossprod(matrix(X[t,]))
T x p matrix of predictors
T x p