Skip to contents

Calculate the maximum value of the penalty parameter lambda

Usage

calc_lambda_max(formula, data, group, offset = NULL)

Arguments

formula

A formula expression for regression models, in the form response ~ predictors. The response must be a survival object as returned by the Surv function.

data

A data frame containing the variables in the model.

group

A factor specifying the group of each sample.

offset

A numeric vector specifying the offset.

Value

The maximum value of the penalty parameter lambda, which shrinks all the coefficients to zero.