Announcement

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

  • Is there a way to highlight which obs are being omitted in clogit?

    Hello,

    I am trying to run clogit and I get the following note: "1,268 groups (11,377 obs) omitted because of all positive or all negative outcomes."

    Is there a way to highlight which observations/groups are being omitted?

    Thank you

  • #2
    Yes there is.

    Code:
    gen byte used = e(sample)
    browse if !used
    Every estimation command sets special macro called e(sample) to identify in-sample observations. The opposite are naturally not used. I suspect you have lots of clusters with no within-cluster variation and so contribute nothing to the conditional model.

    Comment


    • #3
      Cross-posted and answered at https://www.reddit.com/r/stata/comme...obs_are_being/

      Please note our policy on cross-posting, which is that you are asked to tell us about it.https://www.statalist.org/forums/help#crossposting

      Comment


      • #4
        Hello,
        Thank you for the e(sample) suggestion! That worked perfectly.

        For the cross-post, my apologizes. Will do so in the future!

        Comment

        Working...
        X