
Elastic net objective function value for Cox regression model
cox_obj_function.RdReturns the elastic net objective function value for Cox regression model.
Arguments
- y
Survival response variable, must be a
SurvorstratifySurvobject.- pred
Model's predictions for
y.- weights
Observation weights.
- lambda
A single value for the
lambdahyperparameter.- alpha
The elasticnet mixing parameter, with \(0 \le \alpha \le 1\).
- coefficients
The model's coefficients.
- vp
Penalty factors for each of the coefficients.