genRCT.surv | R Documentation |
Provides estimation and inference for the average treatment effect (ATE), generalizing from a randomized controlled trial (RCT) to a target population leveraging observational studies. The method of sieves can be used for the estimation of sampling score and outcome models.
genRCT.surv(
Y.trial,
d.trial,
A.trial,
X.trial,
X.rwe,
tau,
eta.vec = c(0, 0.001, 0.005),
n.boot = 100,
conf.level = 0.05,
seed = NULL,
verbose = TRUE
)
Y.trial |
Observed outcome from a trial; vector of size |
d.trial |
The event indicator, normally 1 = event, 0 = censored; vector of size |
A.trial |
Treatment received from a trial; vector of size |
X.trial |
Matrix of |
X.rwe |
Matrix of |
tau |
| A vector of truncation time for defining restricted mean survival time; e.g., seq(10, 50, by = 10) |
n.boot |
A numeric value indicating the number of bootstrap samples used. This is only relevant
if |
conf.level |
The level of bootstrap confidence interval; Default is |
seed |
An optional integer specifying an initial randomization seed for reproducibility.
Default is |
verbose |
A logical value indicating whether intermediate progress messages should be printed.
Default is |
Return a list containing:
rmst |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.