Announcement

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

  • National level survey data

    Hello,
    I have a national level survey dataset. On household level, it has around 5988 observation. But I only need observations of rural household. How should I code that

  • #2
    There must be a variable indicating whether a household is from urban or rural. For example, a variable called "region" being 1 for urban households and 2 for rural households. Then the code below only keeps rural households.

    Code:
    keep if region == 2

    Comment


    • #3
      I did that for one dataset. But when I merged it with another dataset, due to mismatch in observation, STATA recoded those dropped observations as . Or missing.
      ps. There is so such region variable for all datasets.

      Comment


      • #4
        I used the merge command for the matched variables and it worked.

        Comment

        Working...
        X