Announcement

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

  • #76
    I have added this option asdoc, see this post
    In the correlation tables, asdoc can report stars to show significance at 1%, 5%, and 10% level.
    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


    • #77
      Dear Pro. Attaullah Shah, may I raise a request on including the bootstrap results in a nested option to asdoc in the future? I've encountered such a problem after running a bootstrap to get the confidence intervals of the coefficients. It seems the nest option can not work.
      2B or not 2B, that's a question!

      Comment


      • #78
        Liu Qiang can you please provide a dataset and the code which you want to use with asdoc. Also, how would you like the results to look like?
        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


        • #79
          Originally posted by Attaullah Shah View Post
          Liu Qiang can you please provide a dataset and the code which you want to use with asdoc. Also, how would you like the results to look like?
          Yes. Firstly, thank you for your reply. Here is an example:
          Code:
          clear all
          sysuse auto,clear
          asdoc bootstrap _b, reps(100): qreg price weight length, quantile(10) save(result1) replace
          asdoc bootstrap _b, reps(100): qreg price weight length, quantile(20) save(result1) append
          when I add the option nest, an error occurs. I just want to report the results similar with the codes like:
          Code:
          sysuse auto,clear
          asdoc reg price weight, save(myresult) nest replace
          asdoc reg price weight length, save(myresult) nest append
          or have I missed something important that could meet my goal with the current version of -asdoc-. I would be grateful for your advice if you can help with my question.
          2B or not 2B, that's a question!

          Comment


          • #80
            Dear Liu Qiang
            I have added support for bootstrap regressions in asdoc.

            This beta version can be installed from my site.
            Code:
              
             net install asdoc, from(http://fintechprofessor.com) replace
            An Example

            Since the bootstrap command has a complex syntax structure, I have separated it from asdoc. So first we shall enter the full bootstrap command and then use replay command with asdoc. See the following example.

            Code:
            clear all
            sysuse auto, clear
            bootstrap _b, reps(100): qreg price weight length, quantile(10)
             
             asdoc replay, nest save(result1) replace cnames(Q10)
             
             bootstrap _b, reps(100): qreg price weight length, quantile(20)
             asdoc replay, save(result1)  nest cnames(Q20)
            Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	41.6 KB
ID:	1501131

            Last edited by Attaullah Shah; 01 Jun 2019, 14:02.
            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


            • #81
              Originally posted by Attaullah Shah View Post
              Dear Liu Qiang
              I have added support for bootstrap regressions in asdoc.

              This beta version can be installed from my site.
              Code:
              net install asdoc, from(http://fintechprofessor.com) replace
              An Example

              Since the bootstrap command has a complex syntax structure, I have separated it from asdoc. So first we shall enter the full bootstrap command and then use replay command with asdoc. See the following example.

              Code:
              clear all
              sysuse auto, clear
              bootstrap _b, reps(100): qreg price weight length, quantile(10)
              
              asdoc replay, nest save(result1) replace cnames(Q10)
              
              bootstrap _b, reps(100): qreg price weight length, quantile(20)
              asdoc replay, save(result1) nest cnames(Q20)
              [ATTACH=CONFIG]n1501131[/ATTACH]
              Many thanks. This is extremely helpful and what I really want!
              2B or not 2B, that's a question!

              Comment


              • #82
                Dear Attaullah, I ran the following code (I have also updated the asdoc code via net install asdoc, from(http://fintechprofessor.com) replace)
                Code:
                sysuse nlsw88.dta, clear
                asdoc pwcorr age ttl_exp hours grade race wage, star(all) nonum replace
                and got this result in Word format
                Click image for larger version

Name:	asdoc-all.png
Views:	1
Size:	23.3 KB
ID:	1501234

                I wonder if the stars can be aligned some ways? Thanks.
                Ho-Chuan (River) Huang
                Stata 17.0, MP(4)

                Comment


                • #83
                  This can be done with one click inside MS Word. I can do it programmatically but would need some time. Till then, the quick fix is shown below in a picture. These are the steps"
                  1. Click inside the given table
                  2. The Table tools menu appears
                  3. Click on Layout
                  4. Click on Autofit
                  5. Click on Autofit Contents
                  Click image for larger version

Name:	Untitled.png
Views:	1
Size:	145.1 KB
ID:	1501239

                  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


                  • #84
                    Dear Attaullah, Thanks for the suggestions. I will give it a try.
                    Last edited by River Huang; 02 Jun 2019, 19:16.
                    Ho-Chuan (River) Huang
                    Stata 17.0, MP(4)

                    Comment


                    • #85
                      Dear Attaullah, Could you please add an extra option in your helpful asdoc? In particular, the option p95 is not available.
                      Code:
                       asdoc sum, stat(N mean sd p5 p25 p50 p75 p95) replace
                      Ho-Chuan (River) Huang
                      Stata 17.0, MP(4)

                      Comment


                      • #86
                        River Huang I have added p95 statistics to the stat option. Please check and let me know if there is any issue
                        To install this new version, please use the following line of code
                        Code:
                         
                         net install asdoc, from(http://fintechprofessor.com) replace
                        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


                        • #87
                          Dear Attaullah, Thanks a lot. It works well.
                          Ho-Chuan (River) Huang
                          Stata 17.0, MP(4)

                          Comment


                          • #88
                            asdoc has been updated on SSC, thanks to Prof. Kit Baum. This is Version 2.3.4.1: Changes made June 15, 2019:

                            The updated version has fixed several issues and added all those features which were requested in the above posts or on my website. I shall post details in a later post. The updated version can be installed by
                            Code:
                            ssc install asdoc, replace
                            help asdoc
                            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


                            • #89
                              I am having problems with using the "label" command with factor variables in regressions. Although the reg command displays my label names associated with factor variables, the asdoc reg command does not. It just lists "1" "2", etc. with the variable name.

                              Comment


                              • #90
                                joel hicks Thanks for reporting this. I shall come back with a fix.
                                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