Announcement

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

  • How to attach significance stars (asterisks) to the original Stata output

    I am doing my thesis and I am not an expert (not even close) user of Stata, just basics. I run the models (logit, probit, tobit and OLS) but I just can´t find the way to add significance stars to the p-values in the regression tables. I did found the way to generate a new table with stars levels but that´s not usefull. Can Anyone tell me which command should I use?
    Thaaaaaaanks!

  • #2
    Hello, normally the asterisks are displayed in every output regression, when p-values are related to the significance levels of error in the estimators,

    Stata has 3 levels of significance to the estimators in the regressions. * when pvalue<0.1 , ** when pvalue < 0.05 and finaly *** when pvalue < 0.01]

    They are shown in every output regression with the command outreg2.

    Example.

    reg X Y Z W
    outreg2 using tabla1.xls

    (if you don't have outreg2 command you can use ssc install outreg2)

    you can always use outreg2 to put the regression output with asterisks in a excel file (notice the tabla1.xls)

    Hope this help.

    Comment


    • #3
      You can download asdoc from SSC and use it to export nicely formatted regression tables to MS Word. The default style is to report detailed regression table that combines key statistics from the Stata's regression output with some additional statistics such as mean and standard deviation of the dependent variable and adding asterisks for showing statistical significance, etc.
      See the following example:

      Code:
      * Install asdoc from ssc
      
      ssc install asdoc, replace
      
      * Use auto dataset for this example
      sysuse auto, clear
      
      * Estimate OLS regression,
      * Note that we just need to add asdoc to the beginning of Stata commands
      
      asdoc reg price mpg rep78 headroom
      Click image for larger version

Name:	asdoc reg.png
Views:	1
Size:	28.7 KB
ID:	1462890







      An Example of the nested table


      I show one example here using the nest option of asdoc. For exploring more details of nest option, you can also watch this YouTube video.

      Code:
        asdoc reg price mpg rep78, nest replace
      
      *   Add variable headroom and then nest with existing table
          
         asdoc reg price mpg rep78 headroom, nest append
      
      *    Add variable weight and then nest with existing table
            asdoc reg price mpg rep78 headroom weight, nest append
      
      *    Adding text legend with option add(Foreign, yes) and drop the coefficient of foreign from table
          asdoc reg price mpg rep78 weight foreign, nest append text(Foreign dummy, yes) drop(foreign)
      Click image for larger version

Name:	asdoc nested.png
Views:	1
Size:	39.4 KB
ID:	1462891

      Last edited by Attaullah Shah; 21 Sep 2018, 03:54.
      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
        Hi All,

        I am running a Oprobit model. For my results I am getting " * p<0.05, ** p<0.01, *** p<0.001". Can anyone help me to custom the significance level.

        Comment

        Working...
        X