Generates time-to-event data using the transform inverse sampling method, and such that the time-to-event is distributed according to a Weibull distribution induced by censored and/or non-censored covariates. Can be used to set up simulations.
TimeSampleWeibull(covariate_noncens = NULL, covariate_cens, lambda, gamma, beta)
Censored covariate vector.
Matrix where each column represents a non-censored covariate.
Scale parameter.
Shape parameter.
Regression parameters, ordered as \(\beta\) linked to the non-censored covariates, \(\beta\) linked to the censored covariate.
Stanislas Hubeaux, stan.hubeaux@bluewin.ch