Announcement

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

  • asdoc reg - t-statistics instead of standard errors in parenthesis

    Hello,

    my code looks the following:

    Code:
    asdoc reg Variable1 Variable2 Variable3 Variable4, nest save(Table1.rtf)
    However, I do want the table to report the t-statistics in the parenthesis instead of the standard errors.

    I did read through the help asdoc document but couldn't find an answer.

    I know it is a simple question, but I did not find any solution in the forum.

    I would really appreciate any help.

  • #2
    Add the -rep(t)- option.

    Comment


    • #3
      Thank you for your reply, however, I did change the code to the following but it still keeps reporting the standard error instead of the t-values:
      Code:
      asdoc reg Variable1 Variable2 Variable3 Variable4, nest rep(t) save(Table1.rtf)

      Comment


      • #4
        I just tried the following and it does produce t-stats, perhaps you should try replace option with the first line. Also, make sure you have the latest version
        Code:
        which asreg
        *!Attaullah Shah 3.2 11Nov2018 :
        Code:
        sysuse auto
        asdoc reg mpg rep78 headroom trunk, nest rep(t) replace
        asdoc reg mpg rep78 headroom trunk, nest rep(t)
        Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	38.0 KB
ID:	1496470


        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
          Thank you Attaullah Shah, with the replace option it works.

          Am I mistaken or did you mean "which asdoc" instead of "which asreg" in your first line of code? I do only need to install asdoc and not asreg, right?

          Comment


          • #6
            Yes, I meant 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


            • #7
              Hello,

              I have found asdoc really useful. However, I need p-value in parenthesis. Please help.

              My code is as follows-

              asdoc reghdfe ROA CV, absorb( Firm_id year)vce(cluster Sector_id year) nest add(Firm FE, YES, Year FE, YES) stat(r2_a) replace


              Thanks!!

              Comment


              • #8
                Originally posted by Attaullah Shah View Post
                I just tried the following and it does produce t-stats, perhaps you should try replace option with the first line. Also, make sure you have the latest version
                Code:
                which asreg
                *!Attaullah Shah 3.2 11Nov2018 :
                Code:
                sysuse auto
                asdoc reg mpg rep78 headroom trunk, nest rep(t) replace
                asdoc reg mpg rep78 headroom trunk, nest rep(t)
                [ATTACH=CONFIG]n1496470[/ATTACH]
                Dear Prof. Shah,

                Can you please help wrt the code if I want p value in parenthesis.

                Thanks!!

                Comment


                • #9
                  P-values were added to the latest version.
                  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.
                  Code:
                  sysuse auto
                  asdoc reg mpg rep78 headroom trunk, nest rep(p) replace
                  asdoc reg mpg rep78 headroom trunk, nest rep(p)

                  More on this here https://fintechprofessor.com/forums/...-nested-table/
                  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


                  • #10
                    Originally posted by Attaullah Shah View Post
                    P-values were added to the latest version.
                    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.
                    Code:
                    sysuse auto
                    asdoc reg mpg rep78 headroom trunk, nest rep(p) replace
                    asdoc reg mpg rep78 headroom trunk, nest rep(p)

                    More on this here https://fintechprofessor.com/forums/...-nested-table/
                    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.
                    Thanks for the help. I will cite it for sure.
                    I have one more doubt..in case I do not want star (indicating significant p values) on my coefficients.. Is there any way out to remove those stars.

                    Regards,
                    Anita

                    Comment

                    Working...
                    X