Dr. Attaullah Shah
Keymaster
Post count: 106

If you want to write formatted text to the same document, you can use asdocx for that. See the following example where I add heading 1 and heading 2 using asdocx, and then add two regressions to the same file.

sysuse auto
asdocx, text(Normal input cost) h1 replace
asdocx, text ("Case one: Unit cost versus Cumulative Consumption (MWA)") h2
asdocx reg mpg rep78 headroom trunk weight, nest
asdocx reg mpg rep78 headroom  weight, nest