Announcement

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

  • what is the categorical equivalent of the replace command?

    for context i am replacing all '99' values in both my categorical and continuous data with '.', so that they become missing data
    for continuous variables i can use the "replace `var' = . if `var' == 99" but how can i do this for categorical variables?

  • #2
    In the very same way. Also, see

    Code:
    help mvdecode

    I realize that this is your second post. Please take the time to review the FAQs on how to best post questions. They tell you to post data examples, preferably using dataex.

    Here is why data examples are important: Reading your post, I wonder what makes you think you cannot replace categorical variables just like continuous variables. And, how do you define categorical and continuous variables? We would not need to guess on either of these questions had you posted a data example.

    Comment

    Working...
    X