powered by
Function to obtain the average survival curve from all individual survival curves.
survival_curves(x, h0, est_coef)
The survival probabilities at the sorted event times.
(matrix) the matrix with the subgroup covariates.
matrix
(numeric) the vector with the cumulative baseline hazard.
numeric
(matrix) the estimated coefficients from the fitted model.
survival_curves( elastic_net_surv$x, elastic_net_surv$h0, elastic_net_surv$est_coef )
Run the code above in your browser using DataLab