If you specify the BOOTSTRAP statement, PROC CAUSALMED uses bootstrap resampling to compute standard errors and confidence intervals for causal mediation effects and decompositions. The procedure samples as many bootstrap sample data sets (replicates) as you specify in the NBOOT= option and then estimates the effects and decompositions for each replication.
Bootstrap confidence intervals are computed only for the effects and their corresponding percentages. These intervals are not computed for the parameters in the outcome or mediator models. You can specify one or more of the following types of bootstrap confidence intervals by using the BOOTCI option in the BOOTSTRAP statement:
The BOOTCI(NORMAL) option requests bootstrap confidence intervals that are based on the normal approximation method. The normal bootstrap confidence interval is given by
where is the estimate of
from the original sample,
is the standard deviation of the bootstrap parameter estimates, and
is the
th percentile of the standard normal distribution.
The BOOTCI(PERC) option requests bootstrap confidence intervals that are based on the percentile method. The confidence limits are the th and
th percentiles of the bootstrap parameter estimates, which are computed as follows. Let
…
represent the ordered values of the bootstrap estimates for the potential outcome mean
. Let the kth weighted average percentile be q, set
, and let
where l is the integer part of and g is the fractional part of
. Then the kth percentile, q, is computed as follows, which corresponds to the default percentile definition used by the UNIVARIATE procedure:
The BOOTCI(BC) option requests bias-corrected bootstrap confidence intervals, which use the cumulative distribution function (CDF), , of the bootstrap parameter estimates to determine the upper and lower endpoints of the confidence interval. The bias-corrected bootstrap confidence interval is given by
where is the standard normal CDF,
, and
is a bias correction,
where is the original sample estimate of
from the input data set,
is the number of bootstrap estimates (
) that are less than or equal to
, and B is the number of bootstrap replicates for which an estimate for the treatment effect is obtained.
Bias-corrected bootstrap confidence intervals are the default.
PROC CAUSALMED requires at least 50 bootstrap samples for normal bootstrap confidence intervals and does not compute them if fewer than 40 of the samples produce usable estimates. The procedure requires at least 1,000 bootstrap samples for percentile and bias-corrected bootstrap confidence intervals and does not compute them if fewer than 900 of the samples produce usable estimates. If the number of samples n specified in the NBOOT=n option is less than 1,000 and percentile or bias-corrected bootstrap confidence intervals are requested, the value of n is ignored.