
Last chance! 50% off unlimited learning
Sale ends in
Fit variants of Lasso, and provide the entire sequence of coefficients and fits, starting from zero to the least squares fit.
LARSModel(
type = c("lasso", "lar", "forward.stagewise", "stepwise"),
trace = FALSE,
normalize = TRUE,
intercept = TRUE,
step = NULL,
use.Gram = TRUE
)
model type.
logical indicating whether status information is printed during the fitting process.
whether to standardize each variable to have unit L2 norm.
whether to include an intercept in the model.
algorithm step number to use for prediction. May be a decimal
number indicating a fractional distance between steps. If specified, the
maximum number of algorithm steps will be ceiling(step)
; otherwise,
step
will be set equal to the source package default maximum
[default: max.steps
].
whether to precompute the Gram matrix.
MLModel
class object.
numeric
step
Default values for the NULL
arguments and further model details can be
found in the source link below.
# NOT RUN {
fit(sale_amount ~ ., data = ICHomes, model = LARSModel)
# }
Run the code above in your browser using DataLab