decideOutput {ccmEstimator}R Documentation

Subsidiary Function for Comparative Causal Mediation Analysis

Description

Subsidiary function to determine appropriate output and calculate confidence intervals

Usage

decideOutput(para.df,noInteraction = TRUE,
  sigLevel = 0.05,boots = 1000)

Arguments

para.df

a data frame containing the final data to be analyzed, generated using checkData().

noInteraction

logical. If TRUE (the default), the assumption of no interaction between the treatments and mediator is employed in the analysis.

sigLevel

significance level to use in construction of confidence intervals. Default is 0.05 (i.e. 95 percent confidence intervals).

boots

number of bootstrap resamples taken for construction of confidence intervals.

Value

A list containing confidence intervals along with flags indicating the appropriate output to return to getCCM().

Note

This function is called internally and should not be used directly.

Author(s)

Kirk Bansak and Xiaohan Wu

References

Bansak, K. (2020). Comparative causal mediation and relaxing the assumption of no mediator-outcome confounding: An application to international law and audience costs. Political Analysis, 28(2), 222-243.


[Package ccmEstimator version 1.0.0 Index]