CompareAugAUCs | R Documentation |
Confidence intervals and p-values for the difference and ratio of areas under the mean cumulative count curves, comparing treatment (arm = 1) with reference (arm = 0) with adjusted for covariates.
CompareAugAUCs(
data,
tau,
alpha = 0.05,
boot = FALSE,
perm = FALSE,
reps = 2000
)
data |
Formatted data frame. |
tau |
Truncation time. |
alpha |
Alpha level. |
boot |
Logical, construct bootstrap confidence intervals? |
perm |
Logical, perform permutation test? |
reps |
Replicates for bootstrap/permutation inference. |
Object of class CompareAugAUCs with these slots:
'@Areas': Marginal AUC for each arm.
'@CIs': Observed difference and ratio in areas with confidence intervals.
'@MCF': Mean cumulative count curve for each arm.
'@Pvals': Bootstrap and permutation p-values.
'@Reps': Bootstrap and permutation realizations of the test statistics.
# Simulate data set.
n <- 100
covariates <- data.frame(
arm = c(rep(1, n/2), rep(0, n/2)),
covar = rnorm(n)
)
data <- GenData(
beta_event = c(log(0.5), 1),
covariates = covariates
)
aucs <- CompareAUCs(
data,
covars = data$covar,
tau = 2,
boot = TRUE,
perm = TRUE,
reps = 25,
alpha = 0.05
)
show(aucs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.