Hello,
I'm using Stata MP/16.1 and the user written command khb
I have the following multiple mediation model
Question 1: I want to obtain the p value for each of the indirect effects - but i cant work out how to do it...
From reading other posts on here, i think i need to extract the coef and se from the matrix for disentangle and apply the correct formula to get the p values - but im stuck and i cant work out how to do this. Would be very grateful if someone could point me in the right direction.
So far i have obtained the correct matrix using
But when i run the following i get nothing, it doesnt display the p value (not even an error msg), so not sure where im going wrong
Question 2: is it necessary to present the p value for each indirect effect or is it enough to show that the direct effect of the mediators on y is significant (or not)?
Thank you,
Joanna
I'm using Stata MP/16.1 and the user written command khb
I have the following multiple mediation model
Code:
khb logit y i.x || i.m1 i.m2 m3, concomitant(age sex) summary disentangle verbose
Question 1: I want to obtain the p value for each of the indirect effects - but i cant work out how to do it...
From reading other posts on here, i think i need to extract the coef and se from the matrix for disentangle and apply the correct formula to get the p values - but im stuck and i cant work out how to do this. Would be very grateful if someone could point me in the right direction.
So far i have obtained the correct matrix using
Code:
matrix list e(disentangle)
Code:
local t =b[1,1/b[1,2] di 2*ttail(e(df_r),abs(`t'))
Thank you,
Joanna
Comment