checkInteraction: Subsidiary Function for Comparative Causal Mediation Analysis

Description Usage Arguments Value Note Author(s) References Examples

View source: R/checkInteraction.R

Description

Subsidiary function to assess interactions between treatments and mediator

Usage

1
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.

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.

Examples

1
2
3
data(ICAapp)
final.dat <- checkData(Y = "dapprp", T1 = "trt1", T2 = "trt2", M = "immorp", data = ICAapp)
checkInteraction(final.dat,sigLevel = 0.05)

ccmEstimator documentation built on Sept. 28, 2021, 5:11 p.m.