Announcement

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

  • Drop command

    Hello,

    would like to drop an observation from a variable called "country"

    when I enter:

    . drop if country == Netherlands

    the message I get is:

    Netherlands not found

    But Netherlands is actually an observation that exist in the dataset.

    Can anyone explain what is wrong with my command?

    Thank you

    Manuel

  • #2
    drop if country == "Netherlands" to get Stata to look for the string value "Netherlands" not the variable Netherlands (which is what your current code evaluates).
    Eric A. Booth | Senior Director of Research | Far Harbor | Austin TX

    Comment

    Working...
    X