conditional_after in WeibullAFTFitter.predict_expectation() #1492
-
Hi all, Can someone enlighten me why e.g. the WeibullAFTFitter().predict_expectation() function does not have the parameter conditional_after? When using predict_median for these models I do have this option. Is there a good mathematical explanation or is it something that is not (yet) implemented? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
CamDavidsonPilon
Feb 7, 2023
Replies: 1 comment 1 reply
-
It's not implemented, but the gist of it is that it would rely on an approximation algorithm. To get around this, try: from lifelines.fitters import ParametricRegressionFitter
super(ParametricRegressionFitter, waft).predict_expecation(..., conditional_after=...) Hacky, but I can make this better in the next release. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sve007
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's not implemented, but the gist of it is that it would rely on an approximation algorithm. To get around this, try:
Hacky, but I can make this better in the next release.