BookmarkSubscribeRSS Feed
Analu
Calcite | Level 5

Dear SAS users,

 

I am doing a mediation analysis using cross-sectional data (n=7,173):

X= family tension (binary)
M= sleep disturbance (continuous)
Y= Depression (binary and rare outcome in my population)

There is no interaction between X (family tension) and M (sleep disturbance)

The equations are the following:

 

Logit {P(depression=1|a,m,c)}=θ0+ θ1family_tension+ θ2sleep_disturbance+θ3family_tension*sleep_distrubance+θ’4covariates

E[sleep_disturbance|family_tension,covariates]=β0+ β1dispute + β’2covariates


When I run my mediation analysis using @PROCCAUSALMED, I obtain the following results:

Total effect (OR= 4.05, 95%CI, 3.06-5.05)
Natural direct effect (OR=2.39, 95%CI, 1.88-2.90)
Natural indirect effect (OR=1.70, 95%CI, 1.48-1.91).

 

If I run a logistic regression between X and Y (without the mediator and including covariates), I would expect to get the OR=4.05 as in the CAUSALMED result of the total effect, however I get a OR= 3.06, 95%CI, 2.49-3.76).

 

Does anyone know why I am not  getting the same OR? I would expect to also get OR=4.05 from a logistic regression (x->y without the mediator), because I had understood the total effect in the causal mediation would be equivalent to the reduced model using traditional mediation (x->y without the mediator).

 

Perhaps I am mixing concepts, your help is very wellcome. Thank you so much in advance,

 

Ana

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 0 replies
  • 651 views
  • 0 likes
  • 1 in conversation