Random Values from WeibullAFT? #1218
Replies: 2 comments 1 reply
-
| After more reading and experimentation, I've figured out how to draw samples. My simplistic example: Obviously this only accounts for a single covariate and is not general at all. Might be nice if this functionality was built in? | 
Beta Was this translation helpful? Give feedback.
-
| Hi @edwardreed81, 
 So ^ will vary prio between 0, 3 and 6? What values do you set the other covariates too (or is like  | 
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to draw random values from the distributions fitted by
WeibullAFTFitter?Something along these lines:
to get an array of shape
(3, 100)of random values pulled from the distributions defined byvalues.I can do this discretely using
predict_survival_functionand linear interpolation on the ECDF, but that doesn't allow values higher thantimeline.max(), which seems like something possible using a parametric model.Is there a way to do this currently? If not, is it possible?
Beta Was this translation helpful? Give feedback.
All reactions