Skip to contents

Interface 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 Surv object, or a two-column matrix with time and status.

x

n * p matrix 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.

Value

A fitted penfit object.

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.