lifelines
lifelines copied to clipboard
How to sample from model
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