Announcement

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

  • Adjusting decimals points with asdoc not working?

    Hi, I am using asdoc to output my regression results. Here is my code:

    Code:
    mixed wages c.cage##i.group || id: cage, cov(un) variance mle
    asdoc replay, replace save(mlm-regs) dec(4) nested cnames(Model 1) title(Table 3. Results for Wages) label tzok setstars(*@.05, **@.01, ***@.001) notes(Source: NLSY97)
    
    mixed wages c.cage##i.group var1 var2 var3 || id: cage, cov(un) variance mle
    asdoc replay, save(mlm-regs) dec(4) nested cnames(Model 2) title(Table 3. Results for Wages) label tzok setstars(*@.05, **@.01, ***@.001) notes(Source: NLSY97)
    
    mixed wages c.cage##i.group female var1 var2 var3  var4 var5 var6 || id: cage, cov(un) variance mle
    asdoc replay, save(mlm-regs) dec(4) nested cnames(Model 3) title(Table 3. Results for Wages) label tzok setstars(*@.05, **@.01, ***@.001) notes(Source: NLSY97)
    
    mixed wages c.cage##i.group female var1 var2 var3 var4 var5 var6  var7 var8 var9 || id: cage, cov(un) variance mle
    asdoc replay, save(mlm-regs) dec(4) nested cnames(Model 4) title(Table 3. Results for Wages) label tzok setstars(*@.05, **@.01, ***@.001) notes(Source: NLSY97)
    Regardless of what I set as the number of decimal points, the outputted table includes only 2 decimal points. Does anyone know what could be going on or how to fix this issue?

  • #2
    asdoc is a community-contributed command by Attaullah Shah . He might be able to offer some insight. FWIW, I cannot reproduce your issue using a similar structure.

    Code:
    webuse nlswork, clear 
    
    mixed ln_wage  c.age##i.race || id: , cov(un) variance mle
    asdoc replay, replace save(mlm-regs) dec(4) nested cnames(Model 1) title(Table 3. Results for Wages) label tzok setstars(*@.05, **@.01, ***@.001) notes(Source: NLSY97)
    Click image for larger version

Name:	Screen Shot 2021-07-07 at 7.50.44 PM.png
Views:	1
Size:	154.1 KB
ID:	1617867

    Comment


    • #3
      I can confirm the results reported by Justin Niakamal . When you type
      Code:
      which asdoc
      You can see the latest version information. The current version is
      Code:
      *!-------------------------------------------------------------------------------
       Version 2.3.9.5 : Changes made on April 10 , 2021   : Bug fixed in sum command when a variable had all empty values
      *!-------------------------------------------------------------------------------
      If you do not have the above version, you can update to it from my site. Copy and paste the following line in Stata and press enter.
      Code:
      net install asdoc, from(http://fintechprofessor.com) replace
      discard
      Please note that the above line has to be copied in full.


      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


      • #4
        It is working now for some reason. But thank you both!

        Comment


        • #5
          Hi Prof. Shah, I have quick question: Is there a way to omit the pseudo r-squared produced in the asdoc table? I tried drop(r2_p) and drop(e(r2_p)) and neither seem to work for me.

          Comment


          • #6
            I have the same problem as Adams. I am getting only decimals for my regression output even though I specify dec(4) in the 'asdoc reg' command line. I installed the code :
            net install asdoc, from(http://fintechprofessor.com) replace discard Still getting only two decimal output for Reg. Can someone help me?

            Comment


            • #7
              Please post your code and an example data using dataex (from SSC). I am using the following code and recieve four decimal points.
              Code:
              sysuse auto
              asdoc reg price mpg rep78, nest dec(4) replace
              Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	24.2 KB
ID:	1694801
              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


              • #8
                Terminology can and does vary but in my reading considering say 1.2345

                1 precedes the decimal point

                . (dot or period or stop) is here the decimal point (but in some countries a comma , is conventional, and calling it a decimal comma is welcome)

                2345 are digits after the decimal point; here there are 4 of them and I say (and commonly read of) reporting to 4 decimal places

                See e.g. https://mathworld.wolfram.com/DecimalPoint.html

                Different usages would underline the need to be clear about the terminology you are using!

                Comment


                • #9
                  Originally posted by Attaullah Shah View Post
                  I can confirm the results reported by Justin Niakamal . When you type
                  Code:
                  which asdoc
                  You can see the latest version information. The current version is
                  Code:
                  *!-------------------------------------------------------------------------------
                  Version 2.3.9.5 : Changes made on April 10 , 2021 : Bug fixed in sum command when a variable had all empty values
                  *!-------------------------------------------------------------------------------
                  If you do not have the above version, you can update to it from my site. Copy and paste the following line in Stata and press enter.
                  Code:
                  net install asdoc, from(http://fintechprofessor.com) replace
                  discard
                  Please note that the above line has to be copied in full.


                  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.
                  Hi Prof. Attaullah Shah

                  I find that the decimal points cannot be change without reinstall the package again. If I don't reinstall the package and start the Stata program again, the decimal settings will follow the previous command. Can you help us to solve this problem? Much appreciated!

                  Quinn

                  Comment


                  • #10
                    Originally posted by Quinn Ye View Post

                    Hi Prof. Attaullah Shah

                    I find that the decimal points cannot be change without reinstall the package again. If I don't reinstall the package and start the Stata program again, the decimal settings will follow the previous command. Can you help us to solve this problem? Much appreciated!

                    Quinn
                    Hi, same issue here. Couldn't fix it after reinstalling and trying several modifications in the command. I also notices that with values between 0 to 9 it shows 2 decimals. And with empty value or 2 digits value it does not show any coefficient. Then, STATA is acctually reading the command, but perhaps is something by default in our STATA setting since @Ataullah Shah and Justin Niakamal can run the desired decimals. Any help regarding this is very welcome!

                    Comment

                    Working...
                    X