Dear Stata list users,
In my current project I need to do a mediation analysis on survival data. I have never done a mediation analysis before.
All variables are binary outcomes (0 or 1). It is known that A causes B, but I need to calculate how much of the association is explained by CD and E.
Can you recommend a command? I have tried sureg, but I am not sure if it fits my data (I have only seen it for mediators on a continous scale)? Further I have been advised to try at least two models to make sure the interpretation is correct.
I hope someone can advice me.
Thank you in advance.
In my current project I need to do a mediation analysis on survival data. I have never done a mediation analysis before.
All variables are binary outcomes (0 or 1). It is known that A causes B, but I need to calculate how much of the association is explained by CD and E.
Can you recommend a command? I have tried sureg, but I am not sure if it fits my data (I have only seen it for mediators on a continous scale)? Further I have been advised to try at least two models to make sure the interpretation is correct.
I hope someone can advice me.
Thank you in advance.