Announcement

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

  • regression is leaving out one observation in the data set: how to tell which?

    Hi:

    I have a data set containing 195 observations. When I run a regression (meqrlogit) it tells me the "number of obs = 194".

    I'm wondering if there's a command that will tell me which observation is being left out.

    Any help would be much appreciated.

    Cheers

  • #2
    Code:
    sysuse auto
    reg price mpg rep78 if foreign==1
    gen flag=1 if e(sample)==1
    with that last line flagging each observation included in the last rgeression

    Comment


    • #3
      Superb! Thanks lot for this - works perfectly.

      Cheers
      Simon

      Comment


      • #4
        Code:
         
         gen flag = e(sample)
        is even better.

        Comment

        Working...
        X