Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mycoxph

Helper function to fit coxph model for survfit.coxnet


Description

This function constructs the coxph call needed to run the "hack" of coxph with 0 iterations. It's a separate function as we have to deal with function options like strata, offset and observation weights.

Usage

mycoxph(object, s, ...)

Arguments

object

A class coxnet object.

s

The value of the penalty parameter lambda at which the survival curve is required.

...

The same ... that was passed to survfit.coxnet.


glmnet

Lasso and Elastic-Net Regularized Generalized Linear Models

v4.1-1
GPL-2
Authors
Jerome Friedman [aut], Trevor Hastie [aut, cre], Rob Tibshirani [aut], Balasubramanian Narasimhan [aut], Kenneth Tay [aut], Noah Simon [aut], Junyang Qian [ctb]
Initial release
2021-02-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.