Hi Statalist,
I would like to test the significance of the indirect effect of multiple mediators. To obtain bootstrap standard errors and confidence intervals of the indirect effect, I used a re-adaptation of the instruction provided in UCLA (cf. webpage https://stats.idre.ucla.edu/stata/fa...tors-in-stata/), but kept recieving "invalid syntax error" message from stata. The syntax I used is as follows:
capture program drop bootmm
program bootmm, rclass
syntax [if] [in]
mi estimate, cmdok: sureg (AdjConMean_SEM EFI AdjConMean_Literacy AdjConMean_Gender AdjConMean_Presparty AdjConMean_Preseth) (AdjConMean_NAB AdjConMean_SEM EFI AdjConMean_Apathy AdjConMean_EDUC AdjConMean_Ngo_Civilso AdjConMean_Age)(GovPerformance AdjConMean_NAB AdjConMean_SEM EFI IQI Country_size GNI) if `in'
return scalar ind_eff = [AdjConMean_SEM]_b[EFI]*[AdjConMean_NAB]_b[AdjConMean_SEM]*[GovPerformance]_b[AdjConMean_NAB]
end
bootstrap r(ind_eff), bca reps(5000): bootmm
Could someone please help me with the correct syntax?
Best,
Ikenna
Related Posts with Bootstraping after "mi estimate, cmdok: sureg"
Help with ANOVAI am a relatively new user of Stata and was trying to evaluate an ANOVA analysis and investigate the…
How to graph difference in means between model 1 and model 2Hi Statalist, I will appreciate help with this problem. First, here is my data: Code: * Example g…
Bootstrap average of a variable formed by ml estimationHi, I am trying to boostrap the average of a column over several iterations. The column values are …
Using margins with several related continuous variablesI performed a Poisson regression with robust variance estimation. I have 3 independent variables. Th…
Using mata to create matrixI'd like to create a matrix shown in the figure. It's a NC*(N+C) matrix. All N block matrixes on the…
Subscribe to:
Post Comments (Atom)
0 Response to Bootstraping after "mi estimate, cmdok: sureg"
Post a Comment