Announcement

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

  • Tobit regression with "outreg2" output?

    Dear All, I run this Tobit model
    Code:
    sysuse auto, clear
    gen wgt=weight/1000
    // Censored from below
    tobit mpg wgt foreign, ll(17)
    outreg2 using "tobit", word excel dec(4) replace
    and use (ssc install) "outreg2" command to collect the output, which is
    Click image for larger version

Name:	tobit.png
Views:	1
Size:	9.3 KB
ID:	1592058
    .

    I wonder if the content in red/green areas can be removed. Any suggestions are appreciated.
    Ho-Chuan (River) Huang
    Stata 19.0, MP(4)

  • #2
    The author no longer updates this command, so you are left to use it as is. You can drop the equation, but this does not drop the cofficient "var(e.mpg)" in your example. Specifying -drop(var(e.mpg))- or different variants of this (e.g., -drop("var(e.mpg)")- ) does not drop the coefficient. So in this case, you have to revert to -keep()-. Fortunately, it accepts the wildcard "*", so you need not type in all the names of your regressors.

    Code:
    sysuse auto, clear
    gen wgt=weight/1000
    tobit mpg wgt foreign, ll(17)
    outreg2 using "tobit", eqdrop(/) keep(*) word excel dec(4) replace
    Res.:

    Code:
     
    (1)
    VARIABLES mpg
    wgt -7.7979***
    (0.8702)
    foreign -2.3362*
    (1.2596)
    Constant 44.9318***
    (2.7922)
    Observations 74
    Standard errors in parentheses *** p<0.01, ** p<0.05, * p<0.1

    Comment


    • #3
      Dear Andrew, Thanks a lot for this helpful solution.
      Ho-Chuan (River) Huang
      Stata 19.0, MP(4)

      Comment

      Working...
      X