The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » India » pre and post Covid-19 groups India
Re: pre and post Covid-19 groups India [message #28315 is a reply to message #28312] Tue, 12 December 2023 14:17 Go to previous messageGo to previous message
Varsha is currently offline  Varsha
Messages: 39
Registered: November 2020
Member
I created the year and month of interview variables using the following codes:

gen year_of_interview = int(( hv008 - 1 )/12) + 1900
gen month_of_interview = hv008 - (( year_of_interview - 1900) * 12)

Should be use the variable 'date of interview (CMC)' when month and year of interview variables are already given?


[Updated on: Tue, 12 December 2023 14:22]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Variables on caste and wealth
Next Topic: NFHS-5 District vis a vis 2011 census
Goto Forum:
  


Current Time: Sun Nov 24 01:44:02 Coordinated Universal Time 2024