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.