The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » General » Education- Stata
Re: Education- Stata [message #3185 is a reply to message #2629] Sun, 02 November 2014 18:28 Go to previous message
tom.m
Messages: 2
Registered: November 2014
Member
Hello,

If you are using Stata try this with the household member recode file:

First reshape it long and then use the following code:

bysort hhid (hvidx): gen edmot = hv109[hv112]
bysort hhid (hvidx): gen edfat = hv109[hv114]

Best,

T
 
Read Message
Read Message
Read Message
Previous Topic: Missing data
Next Topic: Benin District / Commune id?
Goto Forum:
  


Current Time: Wed Jan 15 16:51:47 Coordinated Universal Time 2025