Announcement

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

  • xtivreg2 option endog

    I am running many regressions using the endog option on xtivreg2. I am using estimates store and then estimates table to display a subset of my results. I would like to display the p statistic I get from the endog option ( I think this is e(estatp) but I am not sure) in my estimates table. Is it possible to do this?

    I tried to use the statement "ereturn scalar estatp = endog_p" to at least save the p stat as a scalar but I get the error message "non e-class program may not set e()" when I try to do that.

    Thanks.


  • #2
    This is actually an estimates table question. The relevant example from the help file is

    Code:
        Same as above, but also display sample size and adjusted R-squared
    
            . estimates table small large, b(%7.4f) se(%7.4f) stats(N r2_a)
    and you would do something similar except adding estatp to the stats(.) list.

    Comment


    • #3
      Thanks that worked beautifully.

      Comment

      Working...
      X