lifelines icon indicating copy to clipboard operation
lifelines copied to clipboard

How to sample from model

Open edoardovivo opened this issue 2 years ago • 0 comments

Hello,

Sorry if this is basic but I haven't found it in the docs..

I have a fitted model in lifelines (namely, a SplineFitter on right censored data) and what I need to do now is sample from the model, i.e. generate new lifetimes from the model.

The only thing I have seen is the density_ property of the model, but that returns an array that I would neet to fit somehow..

Any other suggestions on how to proceed?

Thank you

edoardovivo avatar Jul 05 '22 10:07 edoardovivo