CompareCICs: Inference on CICs.

View source: R/Main.R

CompareCICsR Documentation

Inference on CICs.

Description

Inference for the difference and ratio in summary statistics comparing two CICs.

Usage

CompareCICs(
  time,
  status,
  arm,
  strata = NULL,
  sum_stat = "AUC",
  param = NULL,
  reps = 2000,
  alpha = 0.05
)

Arguments

time

Observation time.

status

Event status. The event coded as 1 is assumed to be the event of interest.

arm

Arm, assumed to have two levels, coded 0/1.

strata

Optional stratification factor.

sum_stat

Summary statistic, from among 'AOC', 'AUC', 'Quantile', 'Rate'.

param

Truncation time, if ‘sum_stat' is ’AOC', 'AUC', or 'Rate'; quantile probability, if ‘sum_stat' is ’Quantile'.

reps

Bootstrap replicates.

alpha

Alpha level.

Value

Object of class compCICs containing:

  • '@cis': Observed difference and ratio in areas with confidence intervals.

  • '@cics': Cumulative incidence curves.

  • '@pvals': Bootstrap and permutation p-values.

  • '@reps': Bootstrap and permutation realizations of the test statistics.

  • '@marg_stats': Marginal test statistics.

  • '@stratum_stats': Stratum test statistics.


zrmacc/CICs documentation built on Nov. 6, 2024, 1:26 a.m.