The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Merging data files » Merging DHS data in Stata
Re: Merging DHS data in Stata [message #11129 is a reply to message #9796] Wed, 02 November 2016 13:29 Go to previous messageGo to previous message
phres110 is currently offline  phres110
Messages: 39
Registered: October 2014
Location: korea
Member
Bridgette-DHS
kindly help me...i want to merge WI (pkwi21) file with IR (pkir21) file in PDHS 1990 with SPSS. I tried many time by using the same commands that are already discussed here but failed. Kindly help me where i am wrong.


GET
FILE='E:\ALL MY PAPER CS\1.DATA SETS\ALL IR SPSS DATA\pkwi21sv\PKWI21FL.SAV'.
SORT CASES BY whhid withindf wlthind5.
SAVE OUTFILE='E:\ALL MY PAPER CS\1.DATA SETS\ALL IR SPSS DATA\PKWI21FL.SAV'.

GET
FILE='E:\ALL MY PAPER CS\1.DATA SETS\ALL IR SPSS DATA\pkir21sv\PKIR21FL.SAV'.
SORT CASES BY V001 V002 V003.

RENAME VARIABLES (V001 V002 V003 =
whhid withindf wlthind5).
EXECUTE.

MATCH FILES /FILE=*
/FILE='E:\ALL MY PAPER CS\1.DATA SETS\ALL IR SPSS DATA\pkwi21sv\PKWI21FL.SAV'.
/BY whhid withindf wlthind5.
EXECUTE.


dhs110
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to match women to their husbands
Next Topic: Merging HR and PR Files
Goto Forum:
  


Current Time: Wed Dec 25 21:29:38 Coordinated Universal Time 2024