View source: R/TimeSampleWeibull.R
TimeSampleWeibull | R Documentation |
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)
covariate_cens |
Censored covariate vector. |
covariate_noncens |
Matrix where each column represents a non-censored covariate. |
lambda |
Scale parameter. |
gamma |
Shape parameter. |
beta |
Regression parameters, ordered as |
The use of this function is illustrated in SurvRegCens
.
Stanislas Hubeaux, stan.hubeaux@bluewin.ch
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.