Closed lijiaqi-github closed 1 year ago
I have updated the vignette to explain a bit more about the parametrization, but more details are given in the medflex package. mediation-survival.pdf
and correcting a type mediation-survival.pdf
Thank you for your prompt response. So the dnr.f01 is the direct effect and dnr.f11 is the indirect effect, is it right?
And I have another question. If you can give me your opinion, it will be kind and helpful. In mediation analysis in a non-survival setting, direct effect + indirect effect = total effect.
Does the same relationship exist in the survival setting? For example, is the directly calculate hazard ratio equal to the product of the direct effect hazard ratio and the indirect effect hazard ratio?
directly calculated hazard ratio by
summary(phreg(Surv(time,status==2)~dnr.f+preauto+ttt24+cluster(id),data=wdata))
ie, exp(dnr.f) = exp(dnr.f01) * exp(dnr.f11)
You are quite right that the interpretation depends on the scale, and the medflex package have a more careful discussion of these issues.
Thanks you for creating the mets package.
I am trying the mediation analysis in survival model and found your vignettes Mediation Analysis for survival data
However, I am not sure which are the direct and indirect effects in your example.
For example, in the following example, which outputs are the direct and indirect effects?
Thank you very much.