Hi there, I have a query about the "asdoc" command. I have recently come across this command and it's really life changing, since I have to make a lot of tables for my projects. So, using this command I attempted to get tables of summary statistics. The table in the STATA output window came out to be a bit weird. Some of the descriptive statistic numbers are appearing outside the table. The same numbers are also inside the table (column sd). The results seem to be correct since I have cross checked and the tables in the word file are beautiful. I am just a bit worried about this problem in case there are some serious errors that I am unable to detect. I ran the loop without "asdoc" and the same issue did not arise. The command is mentioned below in case you think something went wrong there:
local name3 "jcissue jc_sc jc_st jc_gen personwrk_allot hh_wrkd person_wrkd schh_wrkd sthh_wrkd persondgen_wrkd scpersond_wrkd stpersond_wrkd wpersond_wrkd persond labexp_disb matexp_disb labexp_dp matexp_dp"
foreach name3 in jcissue jc_sc jc_st jc_gen personwrk_allot hh_wrkd ///
person_wrkd schh_wrkd sthh_wrkd persondgen_wrkd scpersond_wrkd ///
stpersond_wrkd wpersond_wrkd persond labexp_disb matexp_disb ///
labexp_dp matexp_dp {
bysort year: asdoc summarize `name3' if cpgender==0, save(summarystat.doc) ///
title(`name3', Female) append
bysort year: asdoc summarize `name3' if cpgender==1, save(summarystat.doc) ///
title(`name3', Male) append
}
Could you please advise me on this? Unfortunately, everytime I am trying to upload the screenshot of the issue, I keep getting an error message.
local name3 "jcissue jc_sc jc_st jc_gen personwrk_allot hh_wrkd person_wrkd schh_wrkd sthh_wrkd persondgen_wrkd scpersond_wrkd stpersond_wrkd wpersond_wrkd persond labexp_disb matexp_disb labexp_dp matexp_dp"
foreach name3 in jcissue jc_sc jc_st jc_gen personwrk_allot hh_wrkd ///
person_wrkd schh_wrkd sthh_wrkd persondgen_wrkd scpersond_wrkd ///
stpersond_wrkd wpersond_wrkd persond labexp_disb matexp_disb ///
labexp_dp matexp_dp {
bysort year: asdoc summarize `name3' if cpgender==0, save(summarystat.doc) ///
title(`name3', Female) append
bysort year: asdoc summarize `name3' if cpgender==1, save(summarystat.doc) ///
title(`name3', Male) append
}
Could you please advise me on this? Unfortunately, everytime I am trying to upload the screenshot of the issue, I keep getting an error message.

Comment