Announcement

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

  • changin p-value range in esttab

    Hi,

    I use esttab command to compile my models.
    I see below * p<0.05, ** p<0.01, *** p<0.001

    In economics we prefer
    * p<0.1, ** p<0.05, *** p<0.01

    How can I change the settings accordingly to get the desired table while doing esttab?

    Best,

  • #2
    estout is from SSC (FAQ Advice #12)

    Code:
    starlevels(* 0.10 ** 0.05 *** 0.01)

    Comment


    • #3
      Thanks,

      I worked out the code which gives the desirable table, I think
      HTML Code:
      esttab*, se(4) r2(4) b(4) star (* 0.1 ** 0.05 *** 0.01) compress , using esttab_table.doc
      Is it correct?

      Comment


      • #4
        Options follow comma. One comma needed (although I think the old Stata syntax allowed multiple commas).

        Code:
        esttab* using esttab_table.doc, se(4) r2(4) b(4) starlevels(* 0.1 ** 0.05 *** 0.01) compress

        Comment


        • #5
          Hello everyone. How can I change the settings accordingly to get the desired table that displays, estimates (standard errors) and exact p values while doing esttab? Like that:
          (Mediator model)
          Estimate (stand. err) p-value
          7.2 (2.262) 0.001
          Thanks. Cristina
          Last edited by Cristina Leone; 16 Aug 2023, 11:03.

          Comment


          • #6
            Code:
            sysuse auto, clear
            regress mpg weight turn, robust
            esttab, cells("b(fmt(2)) se(par fmt(3)) p(fmt(3))") nonumb collab(Coef. SE p-val, lhs(Variables)) nomtitle label
            Res.:

            Code:
            . esttab, cells("b(fmt(2)) se(par fmt(3)) p(fmt(3))") nonumb collab(Coef. SE p-val, lhs(Variables)) nomtitle label
            
            -----------------------------------------------------------
            Variables                   Coef.           SE        p-val
            -----------------------------------------------------------
            Weight (lbs.)               -0.01      (0.001)        0.000
            Turn Circle (ft.)           -0.13      (0.152)        0.379
            Constant                    42.80      (4.137)        0.000
            -----------------------------------------------------------
            Observations                   74                          
            -----------------------------------------------------------
            Last edited by Andrew Musau; 16 Aug 2023, 11:33.

            Comment


            • #7
              Thank you, Andrew. I'm new in Statalist and I posted one question yesterday but I didn't receive any reply. I would ask to you if you are able to help me to solve the issue. Here my post: https://www.statalist.org/forums/for...ith-panel-data. I appreciate so much.

              Best, Cristina

              Comment

              Working...
              X