Debian Codegraph @

man/msboot.relsurv.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/relsurv.msboot.relsurv.R
3 \name{msboot.relsurv}
4 \alias{msboot.relsurv}
5 \title{Bootstrap function for upgraded multi-state models using relsurv}
6 \usage{
7 msboot.relsurv(
8 theta,
9 data,
10 B = 10,
11 id = "id",
12 verbose = 0,
13 transmat,
14 all_times,
15 split.transitions,
16 rmap,
17 time.format,
18 boot_orig_msfit,
19 ratetable = relsurv::slopop,
20 add.times,
21 ...
22 )
23 }
24 \arguments{
25 \item{theta}{A function of data and perhaps other arguments, returning the value of the statistic to be bootstrapped}
26
27 \item{data}{An object of class 'msdata', such as output from msprep}
28
29 \item{B}{The number of bootstrap replications; the default is B=10}
30
31 \item{id}{Character string indicating which column identifies the subjects to be resampled}
32
33 \item{verbose}{The level of output; default 0 = no output, 1 = print the replication}
34
35 \item{transmat}{The transition matrix of class transMat}
36
37 \item{all_times}{All times at which the hazards have to be evaluated}
38
39 \item{split.transitions}{An integer vector containing the numbered transitions that should be split. Use same numbering as in the given transition matrix}
40
41 \item{rmap}{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}
42
43 \item{time.format}{Define the time format which is used in the dataset Possible options: c('days', 'years', 'months'). Default is 'days'}
44
45 \item{boot_orig_msfit}{Logical, if true, do the bootstrap for the basic msfit model}
46
47 \item{ratetable}{The population mortality table. A table of event rates, organized as a ratetable object, see for example relsurv::slopop. Default is slopop}
48
49 \item{add.times}{Additional times at which hazards should be evaluated}
50
51 \item{...}{Any further arguments to the function theta}
52 }
53 \value{
54 A list of size B containing the results for every bootstrap replication.
55 }
56 \description{
57 A helper nonparametric bootstrapping function for variances
58 in extended multi-state models using relative survival.
59 This implementation is written based on function mstate:::msboot.
60 }
61 \seealso{
62 \code{\link{msboot}}
63 }
64 \author{
65 Damjan Manevski \email{[email protected]}, Marta Fiocco, Hein Putter \email{[email protected]}
66 }