checkInteraction {ccmEstimator} | R Documentation |
Subsidiary function to assess interactions between treatments and mediator
checkInteraction(para.df,sigLevel = 0.05)
para.df |
a data frame containing the final data to be analyzed, generated using |
sigLevel |
significance level used to conduct hypothesis tests. |
logical. 1 if there is evidence of interaction between treatment(s) and mediator.
This function is called internally and should not be used directly.
Kirk Bansak and Xiaohan Wu
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.
data(ICAapp)
final.dat <- checkData(Y = "dapprp", T1 = "trt1", T2 = "trt2", M = "immorp", data = ICAapp)
checkInteraction(final.dat,sigLevel = 0.05)