asdocx: Export from Stata to Word, Excel, LaTeX & HTML › Forums › asdocx Forum › Interactions to be shown correctly in the regression results table › Reply To: Interactions to be shown correctly in the regression results table
I have update the asdocx package. The update adds a new sub-command change(old, new)
to flexmat to find and replace existing string with new string. Therefore, if you want to change the #
with x
, the option change will be used as change("#", " x ")
. See the following example
*update asdocx asdocx_update * Load example data sysuse auto * Estimate a regression with interaction terms asdocx reg price c.turn#c.trunk, replace nest 0 |1 2 ----+----------------------------------------------------------------------------- 1 | (1) 2 | price ----+----------------------------------------------------------------------------- 3 |c.turn#c.trunk 4.737*** 4 | (1.515) 5 |Intercept 3528.565*** 6 | (903.25) 7 |Observations 74 8 |R2 0.12 ---------------------------------------------------------------------------------- * Replace the # string with x flexmat change(#, " x ") 0 |1 2 ----+----------------------------------------------------------------------------- 1 | (1) ----+----------------------------------------------------------------------------- 2 | price 3 |c.turn x c.trunk 4.737*** 4 | (1.515) 5 |Intercept 3528.565*** 6 | (903.25) 7 |Observations 74 8 |R\super2 0.12 ---------------------------------------------------------------------------------- * Replace c. string with empty flexmat change(c., "") * Finally, export the modified table asdocx export