To whom that has the expertise on the above questions,
I used bootstrap methods to test the significance of a hypothesized mediation process with the following commands.
"capture program drop bootmm
program bootmm, rclass
syntax [if] [in]
sureg (mediator IV controlled_variables i.company i.year) (DV mediator IV controlled_variables i.company i.year) `if' `in'
return scalar indtotal = [mediator]_b[IV]*[DV]_b[mediator]
return scalar dir=[DV]_b[IV]
end
bootstrap r(indtotal) r(dir), bca reps(5000) nodots: bootmm
estat boot, percentile bc bca
Now I need to graph two figures: (1) distribution of values of indirect effect estimates and (2) distribution of values of effect ratio. Attached are examples of these two figures from Shrout and Bolger (2002), corresponding to the following result of bootstrap analysis.
Refer to: Shrout, P. E., & Bolger, N. (2002). Mediation in experimental and nonexperimental studies: new procedures and recommendations. Psychological Methods, 7(4), 422.
Array
Array
Array
How to obtain these figures with Stata?
Thank you!
Best regards,
Elaine
Related Posts with How to graph bootstrap distribution regarding indirect effect estimates and effect ratio?
Using coefplotHi, I am using coefplot command to represent my results from different regressions. Code: reg nchi…
grqreg: plot aftyer QR, "xtitle(Quantile) is not a twoway plot type" errorStata users, I'am using the "sqreg" and "grqreg" commands to draw graphs after QR. However, the fol…
Multiplication using genHello all, I have generated a new variable using gen: gen acmeanweekly = (aud1avfreq_7*aud2avamoun…
A histogram to show posterior distributions after VARDear all I have seen in a few papers in macroeconomics (which is not my field of expertise), histog…
Panel ARDL Optimal Lag Selectin Loopforval i=1/24 { qui xtreg y x1 x2 x3 x4 x5 /// l`i'.y l`i'.x1 l`i'.x2 l`i'.x3 l`i'.x4 l`i'.x5, fe qu…
Subscribe to:
Post Comments (Atom)
0 Response to How to graph bootstrap distribution regarding indirect effect estimates and effect ratio?
Post a Comment