Learn R Programming

ccmEstimator (version 1.0.0)

checkInteraction: Subsidiary Function for Comparative Causal Mediation Analysis

Description

Subsidiary function to assess interactions between treatments and mediator

Usage

checkInteraction(para.df,sigLevel = 0.05)

Arguments

para.df

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

sigLevel

significance level used to conduct hypothesis tests.

Value

logical. 1 if there is evidence of interaction between treatment(s) and mediator.

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.

Examples

Run this code
# NOT RUN {
data(ICAapp)
final.dat <- checkData(Y = "dapprp", T1 = "trt1", T2 = "trt2", M = "immorp", data = ICAapp)
checkInteraction(final.dat,sigLevel = 0.05)

# }

Run the code above in your browser using DataLab