Announcement

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

  • Override default threshold for significant stars

    Hi,

    So I want to create tables using the following code :

    estout m1 m2 m3, cells(b(star fmt(3)) t(par fmt(2))) legend label varlabels(_cons
    > Alpha) stats(r2, fmt(3 0 1) label(R-sqr))

    m1, m2, m3 are three different regression output which have been stored beforehand.

    Since i noticed that Stata has a different default set for "significance stars" I would like to override this default by :

    estout m1 m2 m3, cells(b(star starlevels(***0.01 **0.05 *0.1)) t(par fmt(2))) leg
    > end label varlabels(_cons Alpha) stats(r2, fmt(3 0 1) label(R-sqr))

    This gives me an option not allowed error.

    I tried varies forms to include starlevels(***0.01 **0.05 *0.1) to the code but was not able to succeed.
    I am pretty sure that the override command is correct but I probably get the sytax wrong.
    Any help would be very much appreciated.


  • #2
    Lutz,

    starlevels is a "primary" option on its own.
    This should work:
    Code:
    clear 
    sysuse auto
    reg price mpg headroom trunk turn
    estimates store m1
    reg price mpg headroom trunk turn foreign
    estimates store m2
    reg price mpg headroom trunk turn foreign rep78
    estimates store m3
    
    estout m* using auto1.csv, ///
        cells(b(star fmt(%9.4f)) t(par fmt(%9.2f))) ///
        starlevels(* 0.10 ** 0.05 *** 0.01) replace
    Best,
    Martin

    Comment

    Working...
    X