View source: R/sim_outcome_survival.R
sim_outcome_survival | R Documentation |
Simulate a survival outcome
sim_outcome_survival( data, formula, reg_coefs, basehaz_type = "spline", beta_Bh0 = NULL, shape_wb = NULL, knot_range = NULL, mean_cens = 30, .tries = 5L, .up = 5000L, up_step = 5000L, seed = NULL, add_info = FALSE, ... )
data |
a |
formula |
the model formula |
reg_coefs |
a vector of regression coefficients. If named, the names
will be matched with the names of the design matrix that
is created from |
basehaz_type |
character string specifying the type of baseline hazard:
|
beta_Bh0 |
vector of coefficients for a spline specification of the baseline hazard |
shape_wb |
parameter of the Wishart distribution |
knot_range |
range of the knots for a spline baseline hazard |
mean_cens |
mean censoring time |
.tries |
integer; how often is the upper limit increased when looking for the root |
.up |
upper limit for the integration over the hazard |
up_step |
step with which |
seed |
the seed value |
add_info |
logical: should the simulated |
... |
arguments passed to other functions |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.