Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cox regression for hazard #9

Open
nhejazi opened this issue May 29, 2019 · 3 comments
Open

Cox regression for hazard #9

nhejazi opened this issue May 29, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@nhejazi
Copy link
Owner

nhejazi commented May 29, 2019

The glmnet package offers an option of using a penalized version of Cox's proportional hazards model for estimating a conditional hazard function. As the conditional hazard can be re-mapped to a conditional density, and the hal9001 function fit_hal may be used as a wrapper for glmnet, a HAL-based Cox regression for the conditional hazard may be performed. The estimates derived from such a regression procedure could be combined with Nelson-Aalen estimates of the baseline hazard to construct a conditional density estimate.

@nhejazi nhejazi self-assigned this May 29, 2019
@nhejazi nhejazi added the enhancement New feature or request label May 29, 2019
@nhejazi
Copy link
Owner Author

nhejazi commented May 29, 2019

#8 is intended to implement this procedure

@nhejazi
Copy link
Owner Author

nhejazi commented Feb 5, 2021

Unfortunately, glmnet implements a limited version of Cox PH regression that is incapable of accommodating time-varying covariates, which appear in the formulation of the penalized Cox model fit on the HAL basis. However, this recent paper describes a new package pcoxtime providing exactly this functionality.

@nhejazi nhejazi reopened this Feb 5, 2021
@nhejazi nhejazi changed the title implement Cox regression for hazard Cox regression for hazard Feb 5, 2021
@nhejazi
Copy link
Owner Author

nhejazi commented Mar 24, 2021

As of v4.1+, the glmnet package now provides support for handling time-dependent covariates in the regularized Cox model, see Section "Cox models for start-stop data" of https://cran.r-project.org/web/packages/glmnet/vignettes/Coxnet.pdf for details. This should be useful to allow implementation of the Cox-based conditional density without changing of the glmnet backend for HAL regression.

@nhejazi nhejazi removed their assignment Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant