Dear all,
I am running the follwing STATA code from the example from this website: https://stats.idre.ucla.edu/stata/fa...tors-in-stata/
Dataset: use https://stats.idre.ucla.edu/stat/data/hsb2, clear
capture program drop bootmm program bootmm, rclass syntax [if] [in] sureg (read math socst)(write math socst)(science read write math socst) `if' `in' return scalar indread = [read]_b[math]*[science]_b[read] return scalar indwrite = [write]_b[math]*[science]_b[write] return scalar indtotal = [read]_b[math]*[science]_b[read] + /// [write]_b[math]*[science]_b[write] end bootstrap r(indread) r(indwrite) r(indtotal), bca reps(5000) nodots: bootmm
But I am getting the error message
invalid syntax
an error occurred when bootstrap executed bootmm
Could you please tell me what is wrong here?
Related Posts with Mediation sureg
How to compare two datasetsHi, I want to verify / confirm that two datasets are identical. I reproduced my dataset from my coll…
Testing for equivalence of marginal effects of the same variable at different '_at'Hello all, I am trying to test for the equivalence of marginal effects of the same variable at two …
"By" and "Margins" command error; alternative approach?Hi Everyone, I am writing a thesis for my Honours year (Advanced Undergraduate Degree) and I am wri…
Instrument variable TSLSDear members, i am just confused about one thing. i want to use lag dependent and lag independent v…
Is there a way to get ey/ex marginal effects after xtreg command with fixed effects?Hello all, I would like to see the proportional marginal effects (i.e.: ey/ex) after a regression w…
Subscribe to:
Post Comments (Atom)
0 Response to Mediation sureg
Post a Comment