The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Nutrition and Anthropometry » MERGING HW FILE AND KR FILE NFHS2 (DHS IV) (code clarification)
Re: MERGING HW FILE AND KR FILE NFHS2 (DHS IV) [message #29397 is a reply to message #29297] Tue, 11 June 2024 15:52 Go to previous message
Janet-DHS is currently offline  Janet-DHS
Messages: 893
Registered: April 2022
Senior Member
Following is a response from DHS staff member, Tom Pullum:

The following Stata lines will do this merge:
* Specify a workspace

cd e:\DHS\DHS_data\scratch

use "...IAHW22FL.DTA"
rename hwcaseid caseid
rename hwline bidx
save IAtemp.dta, replace
 

use "...IAKR23FL.DTA"
merge 1:1 caseid bidx using IAtemp.dta
 
Read Message
Read Message
Previous Topic: Nutrition of children & adults
Next Topic: Height and weight value
Goto Forum:
  


Current Time: Fri Nov 29 02:12:32 Coordinated Universal Time 2024