The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Reshaping data using Stata
Re: Reshaping data using Stata [message #26149 is a reply to message #3486] Sat, 11 February 2023 06:44 Go to previous messageGo to previous message
vkyni is currently offline  vkyni
Messages: 4
Registered: February 2023
Member
I'm working on IR file, I want to use only the b5_ variable, and in India DHS, it ranges from b5_01 to b5_20.
So my query is how to reshape it.
I'm trying to do it with the codes given as

reshape long b5_ , i(caseid) j(bindex)

But it is not giving the correct results when I'm checking it with couple file(where b5 is directly given), I tried this code also

reshape long b5_0 , i(caseid) j(bindex)

but here, the j goes from 0 to 9 only.

Please help me with this.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Antenatal care at least four in India nfhs report matching
Next Topic: Antenatal care from medically trained provider
Goto Forum:
  


Current Time: Thu Nov 21 23:29:15 Coordinated Universal Time 2024