fit.LASSO: Interface function for fitting a generalised linear model...

View source: R/fit.LASSO.R

fit.LASSOR Documentation

Interface function for fitting a generalised linear model with the lasso

Description

Interface for fitting survival models with the lasso, conforming to the requirements of argument fit.fun in peperr call.

Usage

fit.LASSO(response, x, cplx, ...)

Arguments

response

response. Could be numeric vector for linear regression, Surv object for Cox regression or a binary vector for logistic regression.

x

n*p matrix of covariates.

cplx

LASSO penalty. lambda1 of penalized call.

...

additional arguments passed to penalized call.

Details

Function is basically a wrapper around function penalized of package penalized.

Value

penfit object

See Also

peperr, penalized


peperr documentation built on March 31, 2023, 7:34 p.m.