Skip to content

Add cox.ties to pass to glmnet#25

Merged
nanxstats merged 2 commits into
masterfrom
glmnet5
May 10, 2026
Merged

Add cox.ties to pass to glmnet#25
nanxstats merged 2 commits into
masterfrom
glmnet5

Conversation

@nanxstats

@nanxstats nanxstats commented May 10, 2026

Copy link
Copy Markdown
Owner

Fixes #23

This PR adds a cox.ties argument to glmnet-based Cox model fitting helpers, including fit_lasso(), and forwarded it to the underlying cv.glmnet() and glmnet() calls.

The default remains "breslow" to lock in current behavior and silence the glmnet tie-handling migration warning, while "efron" is available for users who want to opt in.

@nanxstats nanxstats merged commit e06cdce into master May 10, 2026
6 checks passed
@nanxstats nanxstats deleted the glmnet5 branch May 10, 2026 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Saturated Cox model fits under glmnet >= 5.0

1 participant