asdocx: Export from Stata to Word, Excel, LaTeX & HTML › Forums › asdocx Forum › asdocx for gsem output › Reply To: asdocx for gsem output
Since we are using the nest option, all subsequent regressions are nested in the table. See this example:
sysuse auto, clear gsem (mpg <- weight c.weight#c.weight foreign) asdocx replay, nest replace gsem (mpg <- weight c.weight#c.weight ) asdocx replay, nest Table: Regression results 0 |1 2 3 ----+----------------------------------------------------------------------- 1 | (1) (2) ----+----------------------------------------------------------------------- 2 | mpg mpg 3 |weight -0.017*** -0.014*** 4 | (0.004) (0.004) 5 |c.weight#c.weight 0*** 0** 6 | (0) (0) 7 |foreign -2.204** 8 | (1.03) 9 |_cons 56.539*** 51.183*** 10 | (6.028) (5.65) 11 |/var(e.mpg) 10.193*** 10.823*** 12 | (1.676) (1.779) 13 |Observations 74 74 ---------------------------------------------------------------------------- Click to Open File: C:\temp\MyFile.docx
If you wish to start a new table, you can use the option reset
asdocx replay, nest reset Table: Regression results 0 |1 2 3 ----+----------------------------------------------------------------------- 1 | (1) (2) ----+----------------------------------------------------------------------- 2 | mpg mpg 3 |weight -0.017*** -0.014*** 4 | (0.004) (0.004) 5 |c.weight#c.weight 0*** 0** 6 | (0) (0) 7 |foreign -2.204** 8 | (1.03) 9 |_cons 56.539*** 51.183*** 10 | (6.028) (5.65) 11 |/var(e.mpg) 10.193*** 10.823*** 12 | (1.676) (1.779) 13 |Observations 74 74 ---------------------------------------------------------------------------- Table: Regression results 0 |1 2 ----+----------------------------------------------------------------------- 1 | (1) ----+----------------------------------------------------------------------- 2 | mpg 3 |weight -0.014*** 4 | (0.004) 5 |c.weight#c.weight 0** 6 | (0) 7 |_cons 51.183*** 8 | (5.65) 9 |/var(e.mpg) 10.823*** 10 | (1.779) 11 |Observations 74 ----------------------------------------------------------------------------