sqrt_XtX: Compute matrix square root of X'X
Description
Compute matrix square root of X'X
Usage
sqrt_XtX(X, inverse = FALSE)
Value
A matrix equalling the (inverse) matrix square root of X'X
Arguments
- X
A numerical matrix
- inverse
if inverse=TRUE, compute inverse of square root