lifelines icon indicating copy to clipboard operation
lifelines copied to clipboard

plot_partial_effects_on_outcome is not defined for CoxTimeVaryingFitter

Open jayantsahewal opened this issue 4 years ago • 4 comments

After fitting a CoxTimeVaryingFitter when I try to use plot_partial_effects_on_outcome, it throws an error saying:

AttributeError: 'CoxTimeVaryingFitter' object has no attribute 'plot_partial_effects_on_outcome'

I tried plot_covariate_groups() as well which says:

NameError: name 'plot_partial_effects_on_outcome' is not defined

Am I doing something wrong or plot_partial_effects_on_outcome has not yet been implemented for CoxTimeVaryingFitter.

jayantsahewal avatar Aug 30 '20 18:08 jayantsahewal

Hi, this was an issue I also ran into during my analysis. I noticed that this does not have a tag of next minor/major release. Is this not on your to-do list currently?

Dekermanjian avatar Nov 28 '20 13:11 Dekermanjian

Hi @Dekermanjian - it's not clear to me how this should work because prediction in time-varying scenarios has epistemological problems. For example: we would need to produce a survival curve ....

Actually, I might have a solution. I don't know if it's correct or not.

CamDavidsonPilon avatar Nov 28 '20 15:11 CamDavidsonPilon

~Hi @Dekermanjian - it's not clear to me how this should work because prediction in time-varying scenarios has epistemological problems. For example: we would need to produce a survival curve .... ~

Actually, I might have a solution. I don't know if it's correct or not.

May I ask, what solution are you looking in to? Is plotting a time varying model a “normal” thing to do?

rpforrest1 avatar Dec 20 '20 00:12 rpforrest1

Is there any progress or update on this?

Tikavdm avatar Mar 31 '21 09:03 Tikavdm