| robust_solve_XtX | R Documentation |
This function computes the least squares solution beta = (X'X)^(-1) X'Y in a numerically stable way using QR decomposition, handling rank-deficient matrices gracefully.
robust_solve_XtX(X, Y)
X |
Design matrix (sparse or dense) |
Y |
Response matrix/vector (can be X'Y if already computed) |
The least squares solution beta (may contain 0 for rank-deficient columns)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.