SlideShare una empresa de Scribd logo
1 de 18
INDIA HUMAN
DEVELOPMENT SURVEY
(IHDS)
TRAINING PROGRAM
MARCH 16, 2016
How to merge two rounds?
Merging Household Files
Relationship between IHDS-I
and IHDS-II households
IHDS-I sample
(N=41,554)
Replacement
households in
IHDS-II (N=2,134)
Split households
from round 1
(N=5,397)
Reinterview
Households
(N=34,621)
Attrition (N=6,911)
 Most important
concept in merging
two data files
1. Some households in
round 1 with no
match in round 2
and vice versa
2. Households in
round 1 match with
more than 1
household in round
2
Any questions?
 Who were chosen for reinterview?
 Recontact rate of 83%? What does it mean?
 How were replacement households chosen?
 What is a split household?
What is needed to merge
household files?
1. Round 1 household file – N=41,554
2. Round 2 household file – N=42,152
 (Why are there more cases in round 2?)
3. Linking file – N=42,152 – gives Round 1
identification codes for all Round 2
households that were reinterviewed, missing
linking codes for 2,134 households that are
new
Step 1 – Link round 2 data to
linking file to get round 1 ID
 use linkhh, clear
 sort STATEID DISTID PSUID HHID
HHSPLITID
 merge 1:1 STATEID DISTID PSUID HHID
HHSPLITID using round2HH
 sort STATEID DISTID PSUID HHID2005
HHSPLITID2005, gen(_mergeR2link)
 save round2HH_plus, replace
Step 2-Merge this Round 2+ file
with Round 1 file
 use round1HH
 rename HHID HHID2005
 rename HHSPLITID HHSPLITID2005
 sort STATEID DISTID PSUID HHID2005
HHSPLITID2005
 merge 1:m STATEID DISTID PSUID HHID2005
HHSPLITID2005 using round2HH_plus,
gen(_mergeR1R2)
 sort STATEID DISTID PSUID HHID HHSPLITID
 save mergedHHR1R2, replace
Cases in Merged file is superset
 Households surveyed in both rounds N=40,018
 Households surveyed in round 1 only (attrition)
N=6,911
 Households surveyd in round 2 only
(replacement) N=2,134
 Total N=49,063
 Keep only _mergeR1R2==3 for panel analysis
(N=40,018)
Merging Individual Files
Relationship between IHDS-I
and IHDS-II individuals
IHDS-I sample
(N=215,754)
New
individulas, new
HH (N=9,760)
New Ind in R1
HH (N=43,822)
Reinterview Ind
(N=150,995)
HH attrition
(N=29,299)
Ind. attrition in
interview hh
(N=35,464)
 Most important
concept in merging
two data files
1. Even reinterview
households have
new members
(births, marriages)
2. Even reinterview
households have
some members who
are no longer there
(deaths, marriages,
migration)
What is needed to merge
individual files?
1. Round 1 household file – N=215,754
2. Round 2 household file – N=204,568
 (Why are there more cases in round 2?)
3. Linking file – N=204,568 – gives Round 1
identification codes for all Round 2
households that were reinterviewed, missing
linking codes for 2,134 households that are
new
Step 1 – Link round 2 data to
linking file to get round 1 ID
 use linkind, clear
 sort STATEID DISTID PSUID HHID
HHSPLITID PERSONID
 merge 1:1 STATEID DISTID PSUID HHID
HHSPLITID PERONID using round2IND
 sort STATEID DISTID PSUID HHID2005
HHSPLITID2005, gen(_mergeR2link)
 save round2IND_plus, replace
Step 2-Merge this Round 2+ file
with Round 1 file
 use round1IND
 rename HHID HHID2005
 rename HHSPLITID HHSPLITID2005
 rename PERSONID PERSONID2005
 sort STATEID DISTID PSUID HHID2005
HHSPLITID2005 PERSONID2005
 merge 1:m STATEID DISTID PSUID HHID2005
HHSPLITID2005 PERSONID2005 using
round2IND_plus, gen(_mergeR1R2)
 sort STATEID DISTID PSUID HHID HHSPLITID
 save mergedINDR1R2, replace
Cases in Merged file is superset
 Individuals surveyed in both rounds N=150,988
 Individuals surveyed in round 1 only
(attrition/death/migration) N=64,766
 Individuals surveyd in round 2 only
(replacement/new) N=53,580
 Total N=269,334
 Keep only _mergeR1R2==3 for panel analysis
(N=150,988)
Evermarried woman file
linkage
Same process as individual file
linkage
 But only one thing to note, there was no ever
married woman file for 2004-5 so you will be
merging with the household file from 2004-5
Merging Caution
Merging overwrites variables
 So if you want to keep variables from round 1
and round 2 separate, before merging you may
want to rename all round 1 variables
 Typically we use the command
 Rename * x*
 Rename xSTATEID STATEID et. For merging
 So xr05 will be age in 20045 and r05 will be
age in 2011-12

Más contenido relacionado

La actualidad más candente

Radix sort presentation
Radix sort presentationRadix sort presentation
Radix sort presentationRatul Hasan
 
Intro to game theory
Intro to game theory Intro to game theory
Intro to game theory Nadav Carmel
 
SELECTION OF BEST LAPTOP AND DESKTOP MODEL BY APPLYING HYBRID MCDM (AHP-TOPSI...
SELECTION OF BEST LAPTOP AND DESKTOP MODEL BY APPLYING HYBRID MCDM (AHP-TOPSI...SELECTION OF BEST LAPTOP AND DESKTOP MODEL BY APPLYING HYBRID MCDM (AHP-TOPSI...
SELECTION OF BEST LAPTOP AND DESKTOP MODEL BY APPLYING HYBRID MCDM (AHP-TOPSI...Shankha Goswami
 
Dijkstra s algorithm
Dijkstra s algorithmDijkstra s algorithm
Dijkstra s algorithmmansab MIRZA
 
Knuth morris pratt string matching algo
Knuth morris pratt string matching algoKnuth morris pratt string matching algo
Knuth morris pratt string matching algosabiya sabiya
 
Database Normalization
Database NormalizationDatabase Normalization
Database NormalizationSmriti Jain
 
Unit I-Data structures stack & Queue
Unit I-Data structures stack & QueueUnit I-Data structures stack & Queue
Unit I-Data structures stack & QueueDrkhanchanaR
 
Lecture 13 data structures and algorithms
Lecture 13 data structures and algorithmsLecture 13 data structures and algorithms
Lecture 13 data structures and algorithmsAakash deep Singhal
 
Normalization Practice case study.pptx
Normalization Practice case study.pptxNormalization Practice case study.pptx
Normalization Practice case study.pptxAhmadMirzaAhmad
 
Infix to postfix expression in ds
Infix to postfix expression in dsInfix to postfix expression in ds
Infix to postfix expression in dsRohini Mahajan
 
2.5 bfs & dfs 02
2.5 bfs & dfs 022.5 bfs & dfs 02
2.5 bfs & dfs 02Krish_ver2
 
Dfs presentation
Dfs presentationDfs presentation
Dfs presentationAlizay Khan
 

La actualidad más candente (20)

Radix sort presentation
Radix sort presentationRadix sort presentation
Radix sort presentation
 
Kruskal's algorithm
Kruskal's algorithmKruskal's algorithm
Kruskal's algorithm
 
Intro to game theory
Intro to game theory Intro to game theory
Intro to game theory
 
SELECTION OF BEST LAPTOP AND DESKTOP MODEL BY APPLYING HYBRID MCDM (AHP-TOPSI...
SELECTION OF BEST LAPTOP AND DESKTOP MODEL BY APPLYING HYBRID MCDM (AHP-TOPSI...SELECTION OF BEST LAPTOP AND DESKTOP MODEL BY APPLYING HYBRID MCDM (AHP-TOPSI...
SELECTION OF BEST LAPTOP AND DESKTOP MODEL BY APPLYING HYBRID MCDM (AHP-TOPSI...
 
Dijkstra s algorithm
Dijkstra s algorithmDijkstra s algorithm
Dijkstra s algorithm
 
Bucket sort
Bucket sortBucket sort
Bucket sort
 
Hash tables
Hash tablesHash tables
Hash tables
 
SQL Join Basic
SQL Join BasicSQL Join Basic
SQL Join Basic
 
Knuth morris pratt string matching algo
Knuth morris pratt string matching algoKnuth morris pratt string matching algo
Knuth morris pratt string matching algo
 
Database Normalization
Database NormalizationDatabase Normalization
Database Normalization
 
Unit I-Data structures stack & Queue
Unit I-Data structures stack & QueueUnit I-Data structures stack & Queue
Unit I-Data structures stack & Queue
 
Lecture 13 data structures and algorithms
Lecture 13 data structures and algorithmsLecture 13 data structures and algorithms
Lecture 13 data structures and algorithms
 
Normalization Practice case study.pptx
Normalization Practice case study.pptxNormalization Practice case study.pptx
Normalization Practice case study.pptx
 
Link prediction
Link predictionLink prediction
Link prediction
 
Hashing
HashingHashing
Hashing
 
Infix to postfix expression in ds
Infix to postfix expression in dsInfix to postfix expression in ds
Infix to postfix expression in ds
 
Marge Sort
Marge SortMarge Sort
Marge Sort
 
2.5 bfs & dfs 02
2.5 bfs & dfs 022.5 bfs & dfs 02
2.5 bfs & dfs 02
 
Data Structures - Lecture 10 [Graphs]
Data Structures - Lecture 10 [Graphs]Data Structures - Lecture 10 [Graphs]
Data Structures - Lecture 10 [Graphs]
 
Dfs presentation
Dfs presentationDfs presentation
Dfs presentation
 

Destacado

Merging files (Data Structure)
Merging files (Data Structure)Merging files (Data Structure)
Merging files (Data Structure)Tech_MX
 
Algorithms for External Memory Sorting
Algorithms for External Memory SortingAlgorithms for External Memory Sorting
Algorithms for External Memory SortingMilind Gokhale
 
3.9 external sorting
3.9 external sorting3.9 external sorting
3.9 external sortingKrish_ver2
 
Hashing Techniques in Data Structures Part2
Hashing Techniques in Data Structures Part2Hashing Techniques in Data Structures Part2
Hashing Techniques in Data Structures Part2SHAKOOR AB
 
Hashing Technique In Data Structures
Hashing Technique In Data StructuresHashing Technique In Data Structures
Hashing Technique In Data StructuresSHAKOOR AB
 

Destacado (11)

Merging files (Data Structure)
Merging files (Data Structure)Merging files (Data Structure)
Merging files (Data Structure)
 
Hashing PPT
Hashing PPTHashing PPT
Hashing PPT
 
Merging
Merging Merging
Merging
 
Algorithms for External Memory Sorting
Algorithms for External Memory SortingAlgorithms for External Memory Sorting
Algorithms for External Memory Sorting
 
3.9 external sorting
3.9 external sorting3.9 external sorting
3.9 external sorting
 
Hashing
HashingHashing
Hashing
 
Ch17 Hashing
Ch17 HashingCh17 Hashing
Ch17 Hashing
 
Sorting algorithms
Sorting algorithmsSorting algorithms
Sorting algorithms
 
Hashing Techniques in Data Structures Part2
Hashing Techniques in Data Structures Part2Hashing Techniques in Data Structures Part2
Hashing Techniques in Data Structures Part2
 
Hashing
HashingHashing
Hashing
 
Hashing Technique In Data Structures
Hashing Technique In Data StructuresHashing Technique In Data Structures
Hashing Technique In Data Structures
 

Último

call girls in Mehrauli DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in Mehrauli  DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️call girls in Mehrauli  DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in Mehrauli DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️saminamagar
 
call girls in Mayapuri DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in Mayapuri DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️call girls in Mayapuri DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in Mayapuri DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️saminamagar
 
call girls in Vasant Kunj DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vasant Kunj DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️call girls in Vasant Kunj DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vasant Kunj DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️saminamagar
 
2024: The FAR, Federal Acquisition Regulations - Part 26
2024: The FAR, Federal Acquisition Regulations - Part 262024: The FAR, Federal Acquisition Regulations - Part 26
2024: The FAR, Federal Acquisition Regulations - Part 26JSchaus & Associates
 
Premium Call Girls Btm Layout - 7001305949 Escorts Service with Real Photos a...
Premium Call Girls Btm Layout - 7001305949 Escorts Service with Real Photos a...Premium Call Girls Btm Layout - 7001305949 Escorts Service with Real Photos a...
Premium Call Girls Btm Layout - 7001305949 Escorts Service with Real Photos a...narwatsonia7
 
High-Level Thematic Event on Tourism - SUSTAINABILITY WEEK 2024- United Natio...
High-Level Thematic Event on Tourism - SUSTAINABILITY WEEK 2024- United Natio...High-Level Thematic Event on Tourism - SUSTAINABILITY WEEK 2024- United Natio...
High-Level Thematic Event on Tourism - SUSTAINABILITY WEEK 2024- United Natio...Christina Parmionova
 
Call Girls In Pullman Hotel New Delhi Aerocity 9873777170
Call Girls In Pullman Hotel New Delhi Aerocity 9873777170Call Girls In Pullman Hotel New Delhi Aerocity 9873777170
Call Girls In Pullman Hotel New Delhi Aerocity 9873777170Sonam Pathan
 
call girls in Tilak Nagar DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in Tilak Nagar DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️call girls in Tilak Nagar DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in Tilak Nagar DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️saminamagar
 
call girls in Laxmi Nagar DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in Laxmi Nagar DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️call girls in Laxmi Nagar DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in Laxmi Nagar DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️saminamagar
 
Professional Conduct and ethics lecture.pptx
Professional Conduct and ethics lecture.pptxProfessional Conduct and ethics lecture.pptx
Professional Conduct and ethics lecture.pptxjennysansano2
 
PEO AVRIL POUR LA COMMUNE D'ORGERUS INFO
PEO AVRIL POUR LA COMMUNE D'ORGERUS INFOPEO AVRIL POUR LA COMMUNE D'ORGERUS INFO
PEO AVRIL POUR LA COMMUNE D'ORGERUS INFOMAIRIEORGERUS
 
call girls in Mayur Vihar Phase III DELHI 🔝 >༒9540349809 🔝 genuine Escort Ser...
call girls in Mayur Vihar Phase III DELHI 🔝 >༒9540349809 🔝 genuine Escort Ser...call girls in Mayur Vihar Phase III DELHI 🔝 >༒9540349809 🔝 genuine Escort Ser...
call girls in Mayur Vihar Phase III DELHI 🔝 >༒9540349809 🔝 genuine Escort Ser...saminamagar
 
call girls in DLF Phase 1 gurgaon 🔝 >༒9540349809 🔝 genuine Escort Service 🔝...
call girls in DLF Phase 1  gurgaon  🔝 >༒9540349809 🔝 genuine Escort Service 🔝...call girls in DLF Phase 1  gurgaon  🔝 >༒9540349809 🔝 genuine Escort Service 🔝...
call girls in DLF Phase 1 gurgaon 🔝 >༒9540349809 🔝 genuine Escort Service 🔝...saminamagar
 
2023 Ecological Profile of Ilocos Norte.pdf
2023 Ecological Profile of Ilocos Norte.pdf2023 Ecological Profile of Ilocos Norte.pdf
2023 Ecological Profile of Ilocos Norte.pdfilocosnortegovph
 
Russian Call Girl Hebbagodi ! 7001305949 ₹2999 Only and Free Hotel Delivery 2...
Russian Call Girl Hebbagodi ! 7001305949 ₹2999 Only and Free Hotel Delivery 2...Russian Call Girl Hebbagodi ! 7001305949 ₹2999 Only and Free Hotel Delivery 2...
Russian Call Girl Hebbagodi ! 7001305949 ₹2999 Only and Free Hotel Delivery 2...narwatsonia7
 
Action Toolkit - Earth Day 2024 - April 22nd.
Action Toolkit - Earth Day 2024 - April 22nd.Action Toolkit - Earth Day 2024 - April 22nd.
Action Toolkit - Earth Day 2024 - April 22nd.Christina Parmionova
 
call girls in moti bagh DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in moti bagh DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️call girls in moti bagh DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in moti bagh DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️saminamagar
 
productionpost-productiondiary-240320114322-5004daf6.pptx
productionpost-productiondiary-240320114322-5004daf6.pptxproductionpost-productiondiary-240320114322-5004daf6.pptx
productionpost-productiondiary-240320114322-5004daf6.pptxHenryBriggs2
 
2024: The FAR, Federal Acquisition Regulations - Part 25
2024: The FAR, Federal Acquisition Regulations - Part 252024: The FAR, Federal Acquisition Regulations - Part 25
2024: The FAR, Federal Acquisition Regulations - Part 25JSchaus & Associates
 
Yellow is My Favorite Color By Annabelle.pdf
Yellow is My Favorite Color By Annabelle.pdfYellow is My Favorite Color By Annabelle.pdf
Yellow is My Favorite Color By Annabelle.pdfAmir Saranga
 

Último (20)

call girls in Mehrauli DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in Mehrauli  DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️call girls in Mehrauli  DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in Mehrauli DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
 
call girls in Mayapuri DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in Mayapuri DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️call girls in Mayapuri DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in Mayapuri DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
 
call girls in Vasant Kunj DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vasant Kunj DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️call girls in Vasant Kunj DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vasant Kunj DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
 
2024: The FAR, Federal Acquisition Regulations - Part 26
2024: The FAR, Federal Acquisition Regulations - Part 262024: The FAR, Federal Acquisition Regulations - Part 26
2024: The FAR, Federal Acquisition Regulations - Part 26
 
Premium Call Girls Btm Layout - 7001305949 Escorts Service with Real Photos a...
Premium Call Girls Btm Layout - 7001305949 Escorts Service with Real Photos a...Premium Call Girls Btm Layout - 7001305949 Escorts Service with Real Photos a...
Premium Call Girls Btm Layout - 7001305949 Escorts Service with Real Photos a...
 
High-Level Thematic Event on Tourism - SUSTAINABILITY WEEK 2024- United Natio...
High-Level Thematic Event on Tourism - SUSTAINABILITY WEEK 2024- United Natio...High-Level Thematic Event on Tourism - SUSTAINABILITY WEEK 2024- United Natio...
High-Level Thematic Event on Tourism - SUSTAINABILITY WEEK 2024- United Natio...
 
Call Girls In Pullman Hotel New Delhi Aerocity 9873777170
Call Girls In Pullman Hotel New Delhi Aerocity 9873777170Call Girls In Pullman Hotel New Delhi Aerocity 9873777170
Call Girls In Pullman Hotel New Delhi Aerocity 9873777170
 
call girls in Tilak Nagar DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in Tilak Nagar DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️call girls in Tilak Nagar DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in Tilak Nagar DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
 
call girls in Laxmi Nagar DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in Laxmi Nagar DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️call girls in Laxmi Nagar DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in Laxmi Nagar DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
 
Professional Conduct and ethics lecture.pptx
Professional Conduct and ethics lecture.pptxProfessional Conduct and ethics lecture.pptx
Professional Conduct and ethics lecture.pptx
 
PEO AVRIL POUR LA COMMUNE D'ORGERUS INFO
PEO AVRIL POUR LA COMMUNE D'ORGERUS INFOPEO AVRIL POUR LA COMMUNE D'ORGERUS INFO
PEO AVRIL POUR LA COMMUNE D'ORGERUS INFO
 
call girls in Mayur Vihar Phase III DELHI 🔝 >༒9540349809 🔝 genuine Escort Ser...
call girls in Mayur Vihar Phase III DELHI 🔝 >༒9540349809 🔝 genuine Escort Ser...call girls in Mayur Vihar Phase III DELHI 🔝 >༒9540349809 🔝 genuine Escort Ser...
call girls in Mayur Vihar Phase III DELHI 🔝 >༒9540349809 🔝 genuine Escort Ser...
 
call girls in DLF Phase 1 gurgaon 🔝 >༒9540349809 🔝 genuine Escort Service 🔝...
call girls in DLF Phase 1  gurgaon  🔝 >༒9540349809 🔝 genuine Escort Service 🔝...call girls in DLF Phase 1  gurgaon  🔝 >༒9540349809 🔝 genuine Escort Service 🔝...
call girls in DLF Phase 1 gurgaon 🔝 >༒9540349809 🔝 genuine Escort Service 🔝...
 
2023 Ecological Profile of Ilocos Norte.pdf
2023 Ecological Profile of Ilocos Norte.pdf2023 Ecological Profile of Ilocos Norte.pdf
2023 Ecological Profile of Ilocos Norte.pdf
 
Russian Call Girl Hebbagodi ! 7001305949 ₹2999 Only and Free Hotel Delivery 2...
Russian Call Girl Hebbagodi ! 7001305949 ₹2999 Only and Free Hotel Delivery 2...Russian Call Girl Hebbagodi ! 7001305949 ₹2999 Only and Free Hotel Delivery 2...
Russian Call Girl Hebbagodi ! 7001305949 ₹2999 Only and Free Hotel Delivery 2...
 
Action Toolkit - Earth Day 2024 - April 22nd.
Action Toolkit - Earth Day 2024 - April 22nd.Action Toolkit - Earth Day 2024 - April 22nd.
Action Toolkit - Earth Day 2024 - April 22nd.
 
call girls in moti bagh DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in moti bagh DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️call girls in moti bagh DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in moti bagh DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
 
productionpost-productiondiary-240320114322-5004daf6.pptx
productionpost-productiondiary-240320114322-5004daf6.pptxproductionpost-productiondiary-240320114322-5004daf6.pptx
productionpost-productiondiary-240320114322-5004daf6.pptx
 
2024: The FAR, Federal Acquisition Regulations - Part 25
2024: The FAR, Federal Acquisition Regulations - Part 252024: The FAR, Federal Acquisition Regulations - Part 25
2024: The FAR, Federal Acquisition Regulations - Part 25
 
Yellow is My Favorite Color By Annabelle.pdf
Yellow is My Favorite Color By Annabelle.pdfYellow is My Favorite Color By Annabelle.pdf
Yellow is My Favorite Color By Annabelle.pdf
 

Merging

  • 1. INDIA HUMAN DEVELOPMENT SURVEY (IHDS) TRAINING PROGRAM MARCH 16, 2016 How to merge two rounds?
  • 3. Relationship between IHDS-I and IHDS-II households IHDS-I sample (N=41,554) Replacement households in IHDS-II (N=2,134) Split households from round 1 (N=5,397) Reinterview Households (N=34,621) Attrition (N=6,911)  Most important concept in merging two data files 1. Some households in round 1 with no match in round 2 and vice versa 2. Households in round 1 match with more than 1 household in round 2
  • 4. Any questions?  Who were chosen for reinterview?  Recontact rate of 83%? What does it mean?  How were replacement households chosen?  What is a split household?
  • 5. What is needed to merge household files? 1. Round 1 household file – N=41,554 2. Round 2 household file – N=42,152  (Why are there more cases in round 2?) 3. Linking file – N=42,152 – gives Round 1 identification codes for all Round 2 households that were reinterviewed, missing linking codes for 2,134 households that are new
  • 6. Step 1 – Link round 2 data to linking file to get round 1 ID  use linkhh, clear  sort STATEID DISTID PSUID HHID HHSPLITID  merge 1:1 STATEID DISTID PSUID HHID HHSPLITID using round2HH  sort STATEID DISTID PSUID HHID2005 HHSPLITID2005, gen(_mergeR2link)  save round2HH_plus, replace
  • 7. Step 2-Merge this Round 2+ file with Round 1 file  use round1HH  rename HHID HHID2005  rename HHSPLITID HHSPLITID2005  sort STATEID DISTID PSUID HHID2005 HHSPLITID2005  merge 1:m STATEID DISTID PSUID HHID2005 HHSPLITID2005 using round2HH_plus, gen(_mergeR1R2)  sort STATEID DISTID PSUID HHID HHSPLITID  save mergedHHR1R2, replace
  • 8. Cases in Merged file is superset  Households surveyed in both rounds N=40,018  Households surveyed in round 1 only (attrition) N=6,911  Households surveyd in round 2 only (replacement) N=2,134  Total N=49,063  Keep only _mergeR1R2==3 for panel analysis (N=40,018)
  • 10. Relationship between IHDS-I and IHDS-II individuals IHDS-I sample (N=215,754) New individulas, new HH (N=9,760) New Ind in R1 HH (N=43,822) Reinterview Ind (N=150,995) HH attrition (N=29,299) Ind. attrition in interview hh (N=35,464)  Most important concept in merging two data files 1. Even reinterview households have new members (births, marriages) 2. Even reinterview households have some members who are no longer there (deaths, marriages, migration)
  • 11. What is needed to merge individual files? 1. Round 1 household file – N=215,754 2. Round 2 household file – N=204,568  (Why are there more cases in round 2?) 3. Linking file – N=204,568 – gives Round 1 identification codes for all Round 2 households that were reinterviewed, missing linking codes for 2,134 households that are new
  • 12. Step 1 – Link round 2 data to linking file to get round 1 ID  use linkind, clear  sort STATEID DISTID PSUID HHID HHSPLITID PERSONID  merge 1:1 STATEID DISTID PSUID HHID HHSPLITID PERONID using round2IND  sort STATEID DISTID PSUID HHID2005 HHSPLITID2005, gen(_mergeR2link)  save round2IND_plus, replace
  • 13. Step 2-Merge this Round 2+ file with Round 1 file  use round1IND  rename HHID HHID2005  rename HHSPLITID HHSPLITID2005  rename PERSONID PERSONID2005  sort STATEID DISTID PSUID HHID2005 HHSPLITID2005 PERSONID2005  merge 1:m STATEID DISTID PSUID HHID2005 HHSPLITID2005 PERSONID2005 using round2IND_plus, gen(_mergeR1R2)  sort STATEID DISTID PSUID HHID HHSPLITID  save mergedINDR1R2, replace
  • 14. Cases in Merged file is superset  Individuals surveyed in both rounds N=150,988  Individuals surveyed in round 1 only (attrition/death/migration) N=64,766  Individuals surveyd in round 2 only (replacement/new) N=53,580  Total N=269,334  Keep only _mergeR1R2==3 for panel analysis (N=150,988)
  • 16. Same process as individual file linkage  But only one thing to note, there was no ever married woman file for 2004-5 so you will be merging with the household file from 2004-5
  • 18. Merging overwrites variables  So if you want to keep variables from round 1 and round 2 separate, before merging you may want to rename all round 1 variables  Typically we use the command  Rename * x*  Rename xSTATEID STATEID et. For merging  So xr05 will be age in 20045 and r05 will be age in 2011-12