Hi, I was comparing the results of the PROC CAUSALMED procedure and the SAS macro given in the paper "Mediation Analysis Allowing for Exposure–Mediator Interactions and Causal Interpretation: Theoretical Assumptions and Implementation With SAS and SPSS Macros" by Valeri and VanderWeele. Outcome=Binary Exposure/Treatment=Binary Mediator=Binary All coded as 0 and 1. However, the results obtained somewhat differ. A] Program and Output of the macro %mediation(data=anak23,yvar=BPControlBoth,avar=VL_LT200,mvar=MMAS_NonAdh,cvar=,a0=0,a1=1,m=0,yreg=logistic,mreg=logistic, interaction=false,casecontrol=,output=,c=,boot=,cens=); run; SAS Output Obs Effect Estimate p_value _95__CI_lower _95__CI_upper1234 cde 2.25450 0.044196 1.02132 4.97666 nde 2.25450 0.044196 1.02132 4.97666 nie 1.22482 0.047073 1.00262 1.49627 total effect 2.76137 0.013251 1.23613 6.16857 SAS Output Obs Effect Estimate1 proportion mediated 0.28777 B] Program and Output of the CAUSALMED proc causalmed data=anak23; model BPControlBoth = VL_LT200 MMAS_NonAdh; mediator MMAS_NonAdh = VL_LT200; run; SAS Output The CAUSALMED Procedure Summary of Effects Estimate StandardError Wald 95%Confidence Limits Z Pr > |Z|Total EffectControlled Direct Effect (CDE)Natural Direct Effect (NDE)Natural Indirect Effect (NIE)Percentage MediatedPercentage Due to InteractionPercentage Eliminated 0.2299 0.0913 0.05089 0.4089 2.52 0.0118 0.1932 0.0908 0.01530 0.3711 2.13 0.0333 0.1932 0.0908 0.01530 0.3711 2.13 0.0333 0.0367 0.0191 -0.00078 0.07417 1.92 0.0550 15.9613 9.7584 -3.1648 35.0875 1.64 0.1019 0 . . . . . 15.9613 9.7584 -3.1648 35.0875 1.64 0.1019 Thanks. Ashutosh
... View more