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
Creating table with many simple linear regression (regress) outputsHello. This is my first post here so please feel free to give suggestions on how to format the post,…
kountry commandHi all, I'm trying to generate iso2 codes for all countries (typed out manually) and I have been tol…
Including all values for only one over() variable in a bar chartI have a dataset with a "fine" variable that can take many values, and an unrelated "coarse" variabl…
Creating yearly and monthly panel to get job transition variableI have been working with CPS ASEC and basic monthly sample. My sample is from 1995-2005. I think it…
Aggregating oaxaca decompositions of functions of the same variableDear all, Hope you are having a wonderful day! I have a question regarding how to aggregate oaxaca …
Subscribe to:
Post Comments (Atom)
0 Response to Mediation sureg
Post a Comment