The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Weighting data » Residing in same household in KR file (Create vaiable for residing in same household)
Residing in same household in KR file [message #28758] Mon, 04 March 2024 21:14 Go to previous message
kmdshoyaib is currently offline  kmdshoyaib
Messages: 13
Registered: May 2022
Member
I am working on a analysis related to vaccine dropouts and vaccine delays using KR file for most recent survey in India. I have considered multiple factors at the household level to assess the risk factors for delay in vaccination (such as Distance for Health facility: Big problem, Type of Residency etc).

In this regard I would like to generate a binomial variable "Residing in same household: Yes or No" for all the entries in KR file to account for the clustering effect on the other variables during the regression analysis. I am NOT looking to generate any variable for siblings.

I am using STATA MP 18 for analysis.

One way I see how it can be done is ... for all observations, if cluster number is same, then within that cluster if household number is same then for that observation, Residing in same household can be marked as Yes or else No. But for this statement i am unable to write a command in STATA.

Kindly help me with a STATA command or provide a stata command to accomplish the task using some other methodology.

Any help is really appreciated.

Thanks in advance

[Updated on: Mon, 04 March 2024 21:14]

Report message to a moderator

 
Read Message
Read Message
Previous Topic: Survey weighting with HIV and Domestic violence weights
Next Topic: SSU variables in the Mauritania DHS2019-2021
Goto Forum:
  


Current Time: Thu Nov 28 10:15:49 Coordinated Universal Time 2024