cumriskdif_ci is a function that computes confidence intervals for cumulative risk estimates using the influence curve or supplied bootstrap replicates to estimate standard errors.

cumriskrr_ci(obj, alpha = 0.05, ic = FALSE, ref = 1, boot_method = "normal")

Arguments

obj

The cumrisk object containing the risk estimates, e.g., as computed by estimate_ipwrisk

alpha

The desired nominal significance level of the confidence intervals.

ic

If the supplied object contains a bootstrap risk estimates, setting ic = TRUE will request that estimated standard errors be derived from the influence curve.

ref

The category to use as the reference for risk difference calculations.

boot_method

The specific bootstrap approach used to compute confidence intervals (default method = "normal" for normal approximation, other choices include "percentile" for the percentile-based approach.

Value

A list containing the cumulative risk at each time pont and confidence interval for each treatment group.

Author

M. Alan Brookhart