View source: R/initialisation.R
fast_ols | R Documentation |
OLS solver that falls back to an optimisation if ncol(X) is huge Also supports LASSO via optimisation
fast_ols(X, Y, weight = NULL, lambda = 0, max_iterations = 300)
X |
data matrix |
Y |
response vector |
weight |
weight vector (default: NULL) |
lambda |
LASSO regularisation (default: 0) |
max_iterations |
if ncol(X) is huge, then ols is replaced with optimisation (default:300) |
coefficient vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.