Announcement

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

  • How to know the sample of countries taken in an analysis!

    Hi !

    This may sound like a silly question. I am working on a panel data with 140 countries. However, when I run regression analysis, it takes into account only 120 countries. I understand this may happen due to presence of missing values. I have many variables. How will I know the subsample of 120 countries that has been taken into regression estimate?


    Looking forward to the answer!

  • #2
    The sample used in a regression is stored in e(sample), so you could do something like this:
    Code:
    reg y x
    tab country if e(sample)

    Comment


    • #3
      Originally posted by Wouter Wakker View Post
      The sample used in a regression is stored in e(sample), so you could do something like this:
      Code:
      reg y x
      tab country if e(sample)
      many thanks!!

      Comment

      Working...
      X