First of all, thank you for writing the fantastic asdoc program!
I have a question regarding the option of adding additional statistics to the output file.
Unfortunately, Stata returns an error after I specified the stat() that I want to apply. I confirmed via ‘ereturn list’ that the scalars I want to add are stored. After I tried several combinations of scalars with mixed success but it is not yet clear what goes wrong. After certain scalars as ‘N’ or ‘df_m’, Stata returns the r(3301) error code.
Thanks for reporting this. Turns out that the R2 statistic is causing this problem. R2 is the default statistic and if another R2 is entered, it causes the error. For time being, you can drop R2. I shall update asdoc to handle this error.