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?
Plotting coeffcients after SuestHi, I would like to plot the coefficients with confidence intervals for coefficients from different…
Generating variable with maximum value 1 by combining twoHello fellow stata-users, Does anyone know how to generate a new variable that solely ranges betwee…
From panel data to cross-sectional dataI have been given a data set that is in the format of paneldata. I would like to transform the datas…
Exporting pca results to ExcelHello, I am trying to export the results of my pca from Stata to Excel. I have tried following Clyd…
Dropping observations of a string variable that contain numbersHi, I want to analyse a very large dataset for which I want to look into the different categories of…
Subscribe to:
Post Comments (Atom)
0 Response to How to graph bootstrap distribution regarding indirect effect estimates and effect ratio?
Post a Comment