Announcement

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

  • Deleting a category

    Hi
    I have 5 categories of a variable (education). I want to delete one category 'don't know'. Can anybody help me with the command here?

  • #2
    not sure what you mean by "delete" and not sure whether your variable is numeric with labels or is a string variable; if you mean deleting the observation with "don't know" on the education variable, I recommend against that; instead, just make the value be missing; assuming this is a string variable (please read the FAQ and follow its advice), you might try:
    Code:
    replace education="" if education=="don't know"

    Comment

    Working...
    X