A helper nonparametric bootstrapping function for variances in extended multi-state models using relative survival. This implementation is written based on function mstate:::msboot.
msboot.relsurv(
theta,
data,
B = 10,
id = "id",
verbose = 0,
transmat,
all_times,
split.transitions,
rmap,
time.format,
boot_orig_msfit,
ratetable = relsurv::slopop,
add.times,
...
)
A list of size B containing the results for every bootstrap replication.
A function of data and perhaps other arguments, returning the value of the statistic to be bootstrapped
An object of class 'msdata', such as output from msprep
The number of bootstrap replications; the default is B=10
Character string indicating which column identifies the subjects to be resampled
The level of output; default 0 = no output, 1 = print the replication
The transition matrix of class transMat
All times at which the hazards have to be evaluated
An integer vector containing the numbered transitions that should be split. Use same numbering as in the given transition matrix
An optional list to be used if the variables in the dataset are not organized (and named) in the same way as in the ratetable object
Define the time format which is used in the dataset Possible options: c('days', 'years', 'months'). Default is 'days'
Logical, if true, do the bootstrap for the basic msfit model
The population mortality table. A table of event rates, organized as a ratetable object, see for example relsurv::slopop. Default is slopop
Additional times at which hazards should be evaluated
Any further arguments to the function theta
Damjan Manevski damjan.manevski@mf.uni-lj.si, Marta Fiocco, Hein Putter H.Putter@lumc.nl
msboot