Simulate Times to Failure from Right Censored data #1260
-
| Is there a way to simulate random times until failure event from a fitted distribution taking into account the time it already passed? I couldn't find it in the documentation. Thank you! | 
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
| Hi @Konrad-H - there is something that you can use.  Give a fitted univariate model  This works due to inverse transform sampling. Now, you want to take into account time that has already passed, call this time s. For this, you just need to remove any entries below s in the resulting vector.  | 
Beta Was this translation helpful? Give feedback.
Hi @Konrad-H - there is something that you can use. Give a fitted univariate model
f, you can provide uniform random variates to thepercentilefunction:This works due to inverse transform sampling.
Now, you want to take into account time that has already passed, call this time s. For this, you just need to remove any entries below s in the resulting vector.