Home › Forums › ASDOC : Easy Publication Quality Tables in Stata › ASDOC regressions by year in Stata
Tagged: asdoc, by groups, nested regression, Stata
-
AuthorPosts
-
Swathi
GuestAugust 20, 2020 at 1:58 pmPost count: 118Good morning Professor,
I hope you are doing well. I was having a bit of trouble with ‘asdoc’, and since I am new to this environment, I apologize to bother you.
I have a data set which contains information such as stock ticker, year, price, market cap, forecast error. I would like to run a regression for each group (fyear) and had used the following code:
by fyear, sort: asdoc regress final log_mkt_cap bm_w log_price log_firmsperanalys log_fcnumber eangr_w error1_w error2_w, replace nest
Earlier this month, the code worked for me. However, now I am getting the following error:
StarMaker(): 3301 subscript invalid func_nested_reg(): - function returned error <istmt>: - function returned error
I would be really grateful if you could please advise me on how I could fix this. I was worried since the code worked previously, but not now.
Thank you so much for your time.
Swathi
Thanks for reporting this.I have fixed the issue. asdoc can now support more than 20 nested regression tables. Since you are running and nesting lots of regressions, you are more likely to be hit the MS Word formatting issues that accrue with large tables. Therefore, you might like to do the following once you open the table in MS Word:
1. Convert the page setup to Landscape
2. Click inside the table, and then click on the ‘Layout’ menu, then choose autofit contents.
3. Copy full table from MS Word and paste in ExcelThe new version of asdoc can be installed from my site. Copy and paste the following line in Stata and press enter.
net install asdoc, from(http://fintechprofessor.com) replace
Please note that the above line has to be copied in full. After installation of the new version, then restart Stata.
Please do remember to cite asdoc. To cite:
In-text citation
Tables were created using asdoc, a Stata program written by Shah (2018).Bibliography
Shah, A. (2018). ASDOC: Stata module to create high-quality tables in MS Word from Stata output. Statistical Software Components S458466, Boston College Department of Economics.-
This reply was modified 3 years, 3 months ago by
Attaullah Shah.
-
This reply was modified 3 years, 3 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.