Announcement

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

  • Asdoc implementation problem


    Hello, i am relativ inexperienced in Stata and I wanted to incorporate my regression output into Word using the Stata add in asdoc. Unfortunately, I get the following error message when I try to use asdoc? (note: file Myfile.doc not found) file Myfile.doc could not be opened fopen (): 603 file could not be opened func_detailed_reg (): - function returned error <istmt>: - function returned error




  • #2
    Hello John Marburg
    Welcome to Statalist. You may like to read the FAQs for posting. It will increase the chances of getting good replies. The FAQs also mention that community contributed commands should be mentioned. e.g, asdoc is available on SSC
    Code:
    ssc install asdoc
    If you have generated a file with asdoc and it is still open, you cannot write further data to it unless you close it. Make sure that this file is closed.

    If that is the source of the problem, then try to create a directory on your hard drive, let say on drive C and name the directory as results. Then change to that directory by typing
    Code:
    cd C:/results
    after that, try the asdoc code again.

    And if that also fails, then re-install asdoc
    The new version of asdoc can be installed from my site. Copy and paste the following line in Stata and press enter.
    Code:
    net install asdoc, from(http://fintechprofessor.com) replace
    Please note that the above line has to be copied in full. After installation of the new version, then restart Stata.

    asdocx is now available
    A more powerful and flexible version of asdoc is now available. I call it asdocx. You may like to check the details here

    https://fintechprofessor.com/asdocx



    Please do remember to cite asdoc. To cite:

    In-text citation
    Tables were created using asdoc, a Stata program written by Shah (2018).

    Bibliography
    Shah, A. (2018). ASDOC: Stata module to create high-quality tables in MS Word from Stata output. Statistical Software Components S458466, Boston College Department of Economics.




    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
      Hello Attaullah Shah, thank you for your response.

      Unfortunately my problem still remains.

      I havent used asdoc until now, so there are no asdoc files to close.
      I installed the new version of asdoc, but still get the same error message...

      Could there be a relation between my Wordversion of 2013 and the occuring problem?

      Best regards

      John Marburg

      Comment


      • #4
        It has nothing to do with the Word version. The error message shows the asreg cannot write to the specific location. Have you tried changing the folder location?
        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


        • #5
          Hello Attaullah Shah,

          yes it was the wrong folder direction. I changed it to ado files. Thank you for reply

          Best regards

          John Marburg

          Comment


          • #6
            Hello Attaullah Shah

            I am having a problem with my asdoc. It opens a browser in chrome instead of opening the document i need.

            It worked a couple of days ago and then suddenly it doesn't. Can you help me out ?

            best regards,
            Barbara

            Comment


            • #7
              Hi, im having a similar problem, since the last little "update" from stata I got a error message when I want to export my table via asdoc command, here ist the error message:

              <istmt>: 3499 asdoctable() not found

              over the last weeks, there was no problem at all using asdoc, but since I make a minor update in stata 17 the last days, the error message comes up every time I try the asdoc command. Has that something to do with the "new" version of stata that was launched this month?! Because nothing else has changed.

              I also did your net install command, but unfortunately it did not solve the problem.

              Here you find my export command:

              asdoc tabstat obs_per_year aggr_cash avg_cash_ratio median_cash_ratio avg_lev_mean median_lev avg_net_lev med_net_lev, by(fyear) format (%9.3f) save(Table1.doc) replace

              Big thanks in advance
              Max

              Comment


              • #8
                While you're waiting for Attaullah Shah to reply, I note that the error message is that asdoctable() can't be found and it is easy to guess that is part of the asdoc package. In general, a new update of Stata has no direct consequences for community-contributed software; otherwise there would be a flood of problem reports every time the company tweaked something. I think it immensely more likely that you changed something in the way you used Stata, but unfortunately I have no idea what that might be.

                Comment


                • #9
                  many thanks for your reply Nick!
                  to narrow it a little bit down, up to this point in my code, i do nothing special. I set my cd and this table just gives me the summary statistics of my dataset (as you would already assumed by my variable names). Therefore I just estimate the median, mean and do some counting of the firm variable per year.

                  I can see the Table in the results window and Im able to generate a output by the logout command (SSC logout).

                  logout, save("Table1.csv") excel replace: tabstat obs_per_year aggr_cash avg_cash_ratio median_cash_ratio avg_lev_mean median_lev avg_net_lev med_net_lev, by(fyear) format (%9.3f)

                  So in the meantime I worked around the problem by another package and export the table to excel, but I thought it might be useful for the developer or other people who face similar issues to have a solution for this problem.

                  Comment


                  • #10
                    I updated asdoc on my website, you may download it with
                    Code:
                     
                     net install asdoc, from(http://fintechprofessor.com) replace
                    If the problem persists, please share a sample data using dataex program.
                    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