Announcement

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

  • Issue with Asdoc saving results

    I am having an issue with asdoc properly saving results. Sometimes, it will work fine, and then, seemingly randomly, it will start failing to save the results. It will create the file, it will create the table with the proper row and column labels, but the actual results will be missing. For example:

    Code:
    ssc uninstall asdoc
    ssc install asdoc, replace
    
    clear
    sysuse auto
    
    asdoc summarize, replace save(C:\Users\tylermenzer\Desktop\test)
    The output of the code seems correct, there are no errors.

    .
    Code:
    asdoc summarize, replace save(C:\Users\tylermenzer\Desktop\test)
    
        Variable |        Obs        Mean    Std. dev.       Min        Max
    -------------+---------------------------------------------------------
           price |         74    6165.257    2949.496       3291      15906
             mpg |         74     21.2973    5.785503         12         41
           rep78 |         69    3.405797    .9899323          1          5
        headroom |         74    2.993243    .8459948        1.5          5
           trunk |         74    13.75676    4.277404          5         23
    -------------+---------------------------------------------------------
          weight |         74    3019.459    777.1936       1760       4840
          length |         74    187.9324    22.26634        142        233
            turn |         74    39.64865    4.399354         31         51
    displacement |         74    197.2973    91.83722         79        425
      gear_ratio |         74    3.014865    .4562871       2.19       3.89
    -------------+---------------------------------------------------------
         foreign |         74    .2972973    .4601885          0          1
    Click to Open File:  C:\Users\tylermenzer\Desktop\test.doc



    This code will create the file test.doc, but when I open it, it just shows this. All the data is missing.
    Obs Mean Std. Dev. Min Max
    price 74 . . . .
    mpg 74 . . . .
    rep78 69 . . . .
    headroom 74 . . . .
    trunk 74 . . . .
    weight 74 . . . .
    length 74 . . . .
    turn 74 . . . .
    displacement 74 . . . .
    gear ratio 74 . . . .
    foreign 74 . . . .

    I have tried to restart Stata, restart my computer, update asdoc, uninstall and reinstall asdoc, save the file to a different location or as a different file type and none of those fix the issue. I am not working remotely or trying to save anything to an external drive. It will randomly start working and stop working for a reason I cannot figure out.

    Obviously, there is something wrong on my end, but I am wondering if anyone has had this issue before or might know some troubleshooting tips. I have tried everything I can think of.

    Edit: The problem is also consistent across summarize, tabstat, and ttest. I am on Stata 18, the 15 May 2023 version. I see there is an update and will try to get IT to install it. But asdoc was working on this version of stata just a few hours ago.
    Last edited by Tyler Menzer; 20 Sep 2024, 10:30.

  • #2
    This is indeed strange. Can you run this code and send the log file to me.
    Code:
    log using asdoc.smcl, replace
    
    sysuse auto
    set trace on
    asdoc sum, replace
    set trace off
    log close
    You may also like asdocx, a premium version of asdoc. It is currently available for $9.99. See details here https://asdocx.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

    Working...
    X