View source: R/unanchored_maic_bootstrap.R
unanchored_maic_bootstrap | R Documentation |
Two different methods for estimating a 95% confidence interval (CI) from the bootstrap samples were explored: * Percentile CIs * Bias-corrected and accelerated (BCa) CIs
ipds |
A data frame containing individual patient data from the intervention study, with baseline characteristic variables for matching. |
psds |
A data frame containing pseudo data from the comparator study. |
agds |
A data frame containing aggregate summary data from the comparator study. |
matching.list |
A character list with two elements giving the names of variables for matching: the first is a vector of binary variables, and the second is a vector of continuous variables. The variable names must match the column names in ipds and agds. Use c() if a type is absent. |
intervention.arm |
The name of the grouping column in the data frame specified by ipds, e.g., intervention.arm = TRT. The default is TRT. |
comparator |
The name of the study column in the data frame specified by agds, e.g., comparator = STUDY. The default is STUDY. |
comparator.study |
A character specifying the comparator study, which must be quoted and cannot be empty (e.g., comparator.study = "Study XX-1"). This is the value of the study column in agds set by the comparator parameter. |
comparator.arm |
The name of the grouping column in the data frame specified by agds, e.g., comparator.arm = TRT. The default is TRT. |
ipds.param.var |
The name of the column that specifies only a subset of the ipds to be used. |
ipds.param |
A character specifying the subset of the rows to be used. This is the value of the column set by the ipds.param.var. |
psds.param.var |
The name of the column that specifies only a specifyed result of the psds to be used. |
psds.param |
A character specifying the subset of the rows to be used. This is the value of the column set by the psds.param.var. |
time |
The name of the survival or follow up time column. |
status |
The status indicator, normally 0 = event, 1 = censored. Can be reseted using the event parameter. |
event |
A numeric value that represents the survival status, 0 = event, 1 = censored. |
response |
The name of the response status column. |
dtype |
Two options are available: "HR" and "OR". The default is "HR". |
n.samples |
The number of bootstrap replicates. |
CIw |
The numeric value specifying the width of the confidence interval, with a default of 0.95. |
digits |
Specify the number of decimal places for the output results. |
... |
Refer to boot for additional parameters. |
A list containing 2 objects. First, a data frame containing the non-anchored matching-adjusted indirect comparison results. Second, a bootstrapping diagnostics histogram.
cov <- list(
c("ECOG", "SMK", "METBRAIN"),
c("BMI", "DIAG")
)
results5 <- unanchored_maic_bootstrap(
ipds = IPD,
agds = AgD_bl,
psds = pseudo,
matching.list = cov,
intervention.arm = TRT,
comparator = STUDY,
comparator.study = "Study XX-1",
comparator.arm = TRT,
time = AVAL, status = CNSR, event = 0,
dtype = "HR",
ipds.param.var = PARAMCD, ipds.param = "OS",
psds.param.var = NULL, psds.param = NULL,
n.samples = 1000
)
results5$results
results5$plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.