Announcement

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

  • #61
    Kiran Abro Sounds great that you have solved your problem. However, the error message that you have reported "
    File Myfile.doc already exists, option append was assumed)
    file Myfile.doc could not be opened for read/write"
    occurs when the file is open and you are trying to write to it. When you run asdoc and save to the same file which is currently open, it will not work. Either, you have to close the file or use a different file name using the option save(File_name).
    Regards
    --------------------------------------------------
    Attaullah Shah, PhD.
    Associate Professor of Finance, Institute of Management Sciences Peshawar, Pakistan
    www.FinTechProfessor.com
    If you use MS Word, do check my asdoc program that easily sends Stata output to MS Word

    Comment


    • #62
      Attaullah Shah yes i got it and copied table to my results doc and closed it. however, this is really great you have done marvelous job.

      Comment


      • #63
        Thanks for your feedback.
        Regards
        --------------------------------------------------
        Attaullah Shah, PhD.
        Associate Professor of Finance, Institute of Management Sciences Peshawar, Pakistan
        www.FinTechProfessor.com
        If you use MS Word, do check my asdoc program that easily sends Stata output to MS Word

        Comment


        • #64
          Can asdoc also produce a result table of Hausman test?

          Comment


          • #65

            Here is one example of using asdoc with the Hausman test

            Code:
            * Use the grunfeld dataset in the example
            webuse grunfeld
            
            * Estimate the fixed effect model
            xtreg invest mvalue kstock, fe
            
            * Store the estimates of the fixed effect model. 
            estimates store fixed
            
            * Estimate the random effects model
            xtreg invest mvalue kstock, re
            
            * Store the estimates of the random effects model
            estimates store random
            
            * Apply the Hausman test and write its results to Word file using asdoc
            asdoc hausman fixed random
            Click image for larger version

Name:	hausman.png
Views:	1
Size:	7.0 KB
ID:	1484976

            Last edited by Attaullah Shah; 22 Feb 2019, 01:24.
            Regards
            --------------------------------------------------
            Attaullah Shah, PhD.
            Associate Professor of Finance, Institute of Management Sciences Peshawar, Pakistan
            www.FinTechProfessor.com
            If you use MS Word, do check my asdoc program that easily sends Stata output to MS Word

            Comment


            • #66
              Thank you for your reply, Attaullah Shah. Can font also be changed into other types such as Times New Roman?

              Comment


              • #67
                A big update is around the corner. It will significantly upgrade asdoc, including the option for setting the font style. Do check back in a week or two.
                Regards
                --------------------------------------------------
                Attaullah Shah, PhD.
                Associate Professor of Finance, Institute of Management Sciences Peshawar, Pakistan
                www.FinTechProfessor.com
                If you use MS Word, do check my asdoc program that easily sends Stata output to MS Word

                Comment


                • #68
                  The new version of asdoc has been uploaded to the SSC. Details of the updates are given in this post
                  https://www.statalist.org/forums/for...ord-from-stata
                  Regards
                  --------------------------------------------------
                  Attaullah Shah, PhD.
                  Associate Professor of Finance, Institute of Management Sciences Peshawar, Pakistan
                  www.FinTechProfessor.com
                  If you use MS Word, do check my asdoc program that easily sends Stata output to MS Word

                  Comment


                  • #69
                    Thanks for the great command, which saved me tons of time.

                    Comment


                    • #70
                      Hi,

                      asdoc was very useful for me so far, however I encountered a problem lately.

                      Code:
                      sysuse auto, clear
                      asdoc sum price
                      
                          Variable |        Obs        Mean    Std. Dev.       Min        Max
                      -------------+---------------------------------------------------------
                             price |         74    6165.257    2949.496       3291      15906
                                      
                      <istmt>:  3499  asdocsum() not found
                      
                      r(3499);
                      It seems Stata does not recognise the asdoc command and combines it with sum.
                      Furthermore, I can't find myfile.doc anywhere.

                      Comment


                      • #71
                        Please reinstall asdoc by
                        Code:
                        ssc install asdoc, replace
                        If the problem persists, then please send the following information:
                        Your Stata version
                        Operating system
                        Regards
                        --------------------------------------------------
                        Attaullah Shah, PhD.
                        Associate Professor of Finance, Institute of Management Sciences Peshawar, Pakistan
                        www.FinTechProfessor.com
                        If you use MS Word, do check my asdoc program that easily sends Stata output to MS Word

                        Comment


                        • #72
                          I already tried reinstalling obviously, however that does not work for me.

                          I am currently using Stata 15.1 on Windows 7 Enterprise (University account).

                          Comment


                          • #73
                            Seems to me the problem is caused by your university account, possibly interfering with the installation. The three asdoc files are given in this zipped folder https://www.dropbox.com/s/terpqll6ev...asdoc.zip?dl=1 . Files asdoc.ado and asdoc.sthlp should be placed in
                            Code:
                             c:/ado/plus/a
                            And lasdoc.mlib file should be placed inside


                            Code:
                            c:/ado/plus/l
                            The last letter is small L
                            Regards
                            --------------------------------------------------
                            Attaullah Shah, PhD.
                            Associate Professor of Finance, Institute of Management Sciences Peshawar, Pakistan
                            www.FinTechProfessor.com
                            If you use MS Word, do check my asdoc program that easily sends Stata output to MS Word

                            Comment


                            • #74
                              Great, it worked!

                              Thanks for your help and for your great command.

                              Comment


                              • #75
                                Prof. Shah thanks a lot for the great work you are doing for use. I have watched you videos are pretty helpful. However, one more request, how can i generate correlation matrix table with multiple significant levels?
                                I have used this commands as an alternative, but it opens the table on the web/ as htm instead on the word document

                                estpost corr variables , matrix listwise
                                est store ci
                                esttab*usig corrmatr.rft, unstack not noobs compress

                                Please help

                                Comment

                                Working...
                                X