Announcement

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

  • #16
    Try these

    1. What command can I use to check for Missing Head within a Household?
    Code:
    bysort hhid: egen  checkhhh = min(RELATIONSHIP)
    HHH is missing where checkhhh > 1

    2. What command should I use to verify if the number of occurrence of House Size (HHSIZE) tally with number of occurrence of the Member of Household (MNO)
    Code:
    bysort hhid: egen checkhhsize = count(HHSIZE)
    gen tallyhhsize = 1 if HHSIZE == checkhhsize
    HHSIZE does not tally with number of occurrence of household members where tallyhhsize is not equal to 1

    Comment


    • #17
      Originally posted by Amit Narnoli View Post
      Try these


      Code:
      bysort hhid: egen checkhhh = min(RELATIONSHIP)
      HHH is missing where checkhhh > 1


      Code:
      bysort hhid: egen checkhhsize = count(HHSIZE)
      gen tallyhhsize = 1 if HHSIZE == checkhhsize
      HHSIZE does not tally with number of occurrence of household members where tallyhhsize is not equal to 1
      Woow, These really worked, I appreciate all for the support.

      Comment

      Working...
      X