Do we need to assume some parametric model to utilize lifelines? #1628
-
Do we need to assume some parametric model to utilize lifelines? Also can one have an arbitrary code as the underlying assumed model (if-else, non-linear and possibly non-convex stuff - basically a black box)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
No, there is support for both semiparametric and nonparametric models. For example, the Cox proportional hazards model is semiparametric, since no model is specified for the baseline hazard. Similarly, the Kaplan-Meier and Nelson-Aalen estimators are nonparametric estimators. Finally, you can also pair However, I think your question is trying to see if there is an option for machine learning. |
Beta Was this translation helpful? Give feedback.
A lot of survival analysis in lifelines involves a likelihood equation, and this is provided by starting with a parametric model. The likelihood equation is where one can define to the model that there is censoring (of any type), see chapter 2 here.
However, you can have a black box produce a likelihood (just make sure it output a non-negative value), use that in the censoring likelihood equation, and maximize this likelihood equation . That's kinda what I did with my experimental project lifelike.