LASSO Regression
LASSO regression.
Options
- data |
object (required)
: object of value arrays. Default:none
. - y |
string (required)
: outcome variable. Default:none
. - x |
(array<(string|Factor)>|string|Factor) (required)
: one or more predictor variables. Default:none
. - quantitative |
array<string> (required)
: array of variables indata
that arequantitative
. Default:none
. - lambda |
number
: regularization parameter. Default:0.001
. - intercept |
boolean
: controls whether to fit a model with an intercept term. Default:true
. - onPredict |
function
: callback invoked with a predict function to make predictions for new data. Default:onPredict() {}
.
Examples
Live Editor
Result
ReferenceError: Provider is not defined