Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot plot covariate with stratified Cox model

See original GitHub issue

Hi Cam,

Is it normal that I can’t use the plot_covariate function on a CoxPHFitter model when it is stratified (strata parameter)?

I am able to plot the effect of varying a covariate with the exact same dataset but without stratification.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

romainmartinezcommented, Jan 25, 2019

Everything works fine now, thanks for the effective support.

CamDavidsonPiloncommented, Jan 25, 2019

Okay, v0.17.5 is up on PyPI

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 The Stratified Cox Procedure - NJIT
The “stratified Cox model” is a modification of the. Cox proportional hazards (PH) model that allows for control by “stratification” of a predictor...
Read more >
Survival analysis: part II – applied clinical data analysis - PMC
This section introduces a stratification and time-dependent Cox regression to deal with covariates violating the proportional hazard assumption. Stratified Cox ...
Read more >
Optimisation of a stratified Cox model using Optimx()
In this blog post we are going to fit a stratified Cox regression model by optimising its likelihood function with Optimx::optimx().
Read more >
Using Time Dependent Covariates and Time Dependent Coe ...
The key rule for time dependent covariates in a Cox model is simple and essentially the same as that for gambling: you cannot...
Read more >
The Stratified Cox Proportional Hazards Regression Model
Take for example Age as the regression variable. Your Cox model assumes that the log of the hazard ratio between two individuals is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found