
Penalized backend fitting wrappers
fit.LASSO.RdInterface functions for fitting penalized models in peperr. The generic wrapper is fit.penalized; fit.LASSO and fit.fusedLASSO are convenience aliases for plain and fused lasso fits.
Usage
fit.penalized(response, x, cplx, ...)
fit.LASSO(response, x, cplx, ...)
fit.fusedLASSO(response, x, cplx, ...)Arguments
- response
response. This can be a binary vector, a numeric response, a
Survobject, or a two-column matrix withtimeandstatus.- x
n * pmatrix of covariates.- cplx
complexity value. For the penalized backend this is usually
lambda1, or a named list of tuning arguments.- ...
additional arguments passed to
penalized.
Details
fit.penalized is the general wrapper around penalized. For survival models it also stores the training design matrix and response so that predictProb.penfit and PLL.penfit can be used later by pmpec and peperr.
fit.LASSO simply calls fit.penalized. fit.fusedLASSO calls the same backend with fusedl = TRUE.