kosukeimai / mediation

R package mediation
61 stars 29 forks source link

Can this packages be used to perform mediation analysis with cox PH model? #47

Open Guoguo-ux opened 2 years ago

Guoguo-ux commented 2 years ago

I want to do a mediation analysis, the outcome model is a survival model, but the document of this packages shows the outcome model can be survreg object instead of coxph object. Cox ph model can be used as outcome model?

Wangyuxiang1998 commented 1 year ago

I have the same problems. Could you tell me how you solved them? Thank you.