Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Asdoc command and table structure

    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.

  • #2
    Thank for your feedback and appreciation. asdoc is among the top 5 most downloaded programs on SSC (currently it ranks 6, though it has ranked 3rd for the last several months). The values that you see on the screen may be scattered due to smaller line size on the computer you are using. What matters is the accuracy and table structure inside the Word document created by asdoc. You have confirmed both and so have many other users of asdoc. Still, I would appreciate if you find any bug and report it here.

    You may also like asdocx, that offers more options and flexibility https://fintechprofessor.com/.
    Regards
    --------------------------------------------------
    Attaullah Shah, PhD.
    Professor of Finance, Institute of Management Sciences Peshawar, Pakistan
    FinTechProfessor.com
    https://asdocx.com
    Check out my asdoc program, which sends outputs to MS Word.
    For more flexibility, consider using asdocx which can send Stata outputs to MS Word, Excel, LaTeX, or HTML.

    Comment


    • #3
      Thank you so much Prof. Shah. I have been greatly benefitted by asdoc command.

      Comment

      Working...
      X