Announcement

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

  • Delete observations from a coded variable

    Good morning everyone, I have a variable that tells me the school to which the students belong (colegio), and I want to eliminate the schools that have less than 10 observations, I am using the following code:

    Code:
    drop if colegio<10
    However, the schools that have the label 10 are eliminated, and not the observations.
    Attached Files
Working...
X