SwathiGuestAugust 20, 2020 at 1:58 pmPost count: 116
Good 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.Attaullah ShahKeymasterAugust 26, 2020 at 1:31 pmPost count: 68
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 Excel
The 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:
Tables were created using asdoc, a Stata program written by Shah (2018).
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 7 months, 2 weeks ago by Attaullah Shah.
- You must be logged in to reply to this topic.