SlideShare a Scribd company logo
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

More Related Content

Recently uploaded

sim owner details | +447490809237 | sim owner details pakistan
sim owner details | +447490809237 | sim owner details pakistansim owner details | +447490809237 | sim owner details pakistan
sim owner details | +447490809237 | sim owner details pakistan
ownerdetailssim
 
Foresic Academy. Information Security Company in Punjab (INDIA)
Foresic Academy. Information  Security Company in Punjab (INDIA)Foresic Academy. Information  Security Company in Punjab (INDIA)
Foresic Academy. Information Security Company in Punjab (INDIA)
Forensic Academy
 
How to Handle Open Web Application Security Project(OWASP) Top Vulnerabilities
How to Handle Open Web Application Security Project(OWASP) Top VulnerabilitiesHow to Handle Open Web Application Security Project(OWASP) Top Vulnerabilities
How to Handle Open Web Application Security Project(OWASP) Top Vulnerabilities
coast550
 
Findlay Evans Waterproofing with AIW - Article November 2017
Findlay Evans Waterproofing with AIW - Article November 2017Findlay Evans Waterproofing with AIW - Article November 2017
Findlay Evans Waterproofing with AIW - Article November 2017
MELBOURNE Commercial Waterproofers - Findlay-Evans Waterproofing
 
Verified Call Girls Mumbai || +919920725232 || Quick Booking at Affordable Price
Verified Call Girls Mumbai || +919920725232 || Quick Booking at Affordable PriceVerified Call Girls Mumbai || +919920725232 || Quick Booking at Affordable Price
Verified Call Girls Mumbai || +919920725232 || Quick Booking at Affordable Price
ownerdetailssim i11
 
Find Sim Owner Details | +447490809237 | Paid Sim Details
Find Sim Owner Details | +447490809237 | Paid Sim DetailsFind Sim Owner Details | +447490809237 | Paid Sim Details
Find Sim Owner Details | +447490809237 | Paid Sim Details
ownerdetailssim
 
Findlay Evans Waterproofing with AIW - Article November 2019
Findlay Evans Waterproofing with AIW - Article November 2019Findlay Evans Waterproofing with AIW - Article November 2019
Findlay Evans Waterproofing with AIW - Article November 2019
MELBOURNE Commercial Waterproofers - Findlay-Evans Waterproofing
 
Top Call Girls in Mumbai || +919920725232 || Quick Booking at Affordable Price
Top Call Girls in Mumbai || +919920725232 || Quick Booking at Affordable PriceTop Call Girls in Mumbai || +919920725232 || Quick Booking at Affordable Price
Top Call Girls in Mumbai || +919920725232 || Quick Booking at Affordable Price
ownerdetailssim i11
 
How Long Does Vinyl Siding Last and What Impacts Its Life Expectancy?
How Long Does Vinyl Siding Last and What Impacts Its Life Expectancy?How Long Does Vinyl Siding Last and What Impacts Its Life Expectancy?
How Long Does Vinyl Siding Last and What Impacts Its Life Expectancy?
Alexa Bale
 
Ant Pest Control Services, Yorkshire, UK
Ant Pest Control Services, Yorkshire, UKAnt Pest Control Services, Yorkshire, UK
Ant Pest Control Services, Yorkshire, UK
larryvhidalgo
 
PEST CONTROL IN SYDNEY | EXPERT TIPS.pdf
PEST CONTROL IN SYDNEY | EXPERT TIPS.pdfPEST CONTROL IN SYDNEY | EXPERT TIPS.pdf
PEST CONTROL IN SYDNEY | EXPERT TIPS.pdf
EMk Termite Pest
 
Check CNIC Information | +447490809237 | CNIC Details Checker
Check CNIC Information | +447490809237 | CNIC Details CheckerCheck CNIC Information | +447490809237 | CNIC Details Checker
Check CNIC Information | +447490809237 | CNIC Details Checker
ownerdetailssim
 
BOOST YOUR CREDIBILITY & TRUST WITH VIDEO TESTIMONIALS.pdf
BOOST YOUR CREDIBILITY & TRUST WITH VIDEO TESTIMONIALS.pdfBOOST YOUR CREDIBILITY & TRUST WITH VIDEO TESTIMONIALS.pdf
BOOST YOUR CREDIBILITY & TRUST WITH VIDEO TESTIMONIALS.pdf
Ashwin Pk
 
Generate Revenue with Contact Center Business Model Strategy
Generate Revenue with Contact Center Business Model StrategyGenerate Revenue with Contact Center Business Model Strategy
Generate Revenue with Contact Center Business Model Strategy
RNayak3
 
Alauddin Trust | Charity Empowering People in Need
Alauddin Trust | Charity Empowering People in NeedAlauddin Trust | Charity Empowering People in Need
Alauddin Trust | Charity Empowering People in Need
contactalauddintrust
 
Material Testing Lab Services in Dubai.pdf
Material Testing Lab Services in Dubai.pdfMaterial Testing Lab Services in Dubai.pdf
Material Testing Lab Services in Dubai.pdf
sandeepmetsuae
 
Unification of SMS API in Pakistan | Best SMS API Service Provider
Unification of SMS API in Pakistan | Best SMS API Service ProviderUnification of SMS API in Pakistan | Best SMS API Service Provider
Unification of SMS API in Pakistan | Best SMS API Service Provider
shikhaseo43
 
Digitalz Pro Media & Technologies - Best Digital Marketing Company in Faridabad
Digitalz Pro Media & Technologies - Best Digital Marketing Company in FaridabadDigitalz Pro Media & Technologies - Best Digital Marketing Company in Faridabad
Digitalz Pro Media & Technologies - Best Digital Marketing Company in Faridabad
dakshjain0501
 
How Can I Apply in India (2024) for a US B1/B2 Visa Renewal?
How Can I Apply in India (2024) for a US B1/B2 Visa Renewal?How Can I Apply in India (2024) for a US B1/B2 Visa Renewal?
How Can I Apply in India (2024) for a US B1/B2 Visa Renewal?
usaisofficial
 
OpenText Vulnerability Assessment & Penetration Testing
OpenText Vulnerability Assessment & Penetration TestingOpenText Vulnerability Assessment & Penetration Testing
OpenText Vulnerability Assessment & Penetration Testing
Marc St-Pierre
 

Recently uploaded (20)

sim owner details | +447490809237 | sim owner details pakistan
sim owner details | +447490809237 | sim owner details pakistansim owner details | +447490809237 | sim owner details pakistan
sim owner details | +447490809237 | sim owner details pakistan
 
Foresic Academy. Information Security Company in Punjab (INDIA)
Foresic Academy. Information  Security Company in Punjab (INDIA)Foresic Academy. Information  Security Company in Punjab (INDIA)
Foresic Academy. Information Security Company in Punjab (INDIA)
 
How to Handle Open Web Application Security Project(OWASP) Top Vulnerabilities
How to Handle Open Web Application Security Project(OWASP) Top VulnerabilitiesHow to Handle Open Web Application Security Project(OWASP) Top Vulnerabilities
How to Handle Open Web Application Security Project(OWASP) Top Vulnerabilities
 
Findlay Evans Waterproofing with AIW - Article November 2017
Findlay Evans Waterproofing with AIW - Article November 2017Findlay Evans Waterproofing with AIW - Article November 2017
Findlay Evans Waterproofing with AIW - Article November 2017
 
Verified Call Girls Mumbai || +919920725232 || Quick Booking at Affordable Price
Verified Call Girls Mumbai || +919920725232 || Quick Booking at Affordable PriceVerified Call Girls Mumbai || +919920725232 || Quick Booking at Affordable Price
Verified Call Girls Mumbai || +919920725232 || Quick Booking at Affordable Price
 
Find Sim Owner Details | +447490809237 | Paid Sim Details
Find Sim Owner Details | +447490809237 | Paid Sim DetailsFind Sim Owner Details | +447490809237 | Paid Sim Details
Find Sim Owner Details | +447490809237 | Paid Sim Details
 
Findlay Evans Waterproofing with AIW - Article November 2019
Findlay Evans Waterproofing with AIW - Article November 2019Findlay Evans Waterproofing with AIW - Article November 2019
Findlay Evans Waterproofing with AIW - Article November 2019
 
Top Call Girls in Mumbai || +919920725232 || Quick Booking at Affordable Price
Top Call Girls in Mumbai || +919920725232 || Quick Booking at Affordable PriceTop Call Girls in Mumbai || +919920725232 || Quick Booking at Affordable Price
Top Call Girls in Mumbai || +919920725232 || Quick Booking at Affordable Price
 
How Long Does Vinyl Siding Last and What Impacts Its Life Expectancy?
How Long Does Vinyl Siding Last and What Impacts Its Life Expectancy?How Long Does Vinyl Siding Last and What Impacts Its Life Expectancy?
How Long Does Vinyl Siding Last and What Impacts Its Life Expectancy?
 
Ant Pest Control Services, Yorkshire, UK
Ant Pest Control Services, Yorkshire, UKAnt Pest Control Services, Yorkshire, UK
Ant Pest Control Services, Yorkshire, UK
 
PEST CONTROL IN SYDNEY | EXPERT TIPS.pdf
PEST CONTROL IN SYDNEY | EXPERT TIPS.pdfPEST CONTROL IN SYDNEY | EXPERT TIPS.pdf
PEST CONTROL IN SYDNEY | EXPERT TIPS.pdf
 
Check CNIC Information | +447490809237 | CNIC Details Checker
Check CNIC Information | +447490809237 | CNIC Details CheckerCheck CNIC Information | +447490809237 | CNIC Details Checker
Check CNIC Information | +447490809237 | CNIC Details Checker
 
BOOST YOUR CREDIBILITY & TRUST WITH VIDEO TESTIMONIALS.pdf
BOOST YOUR CREDIBILITY & TRUST WITH VIDEO TESTIMONIALS.pdfBOOST YOUR CREDIBILITY & TRUST WITH VIDEO TESTIMONIALS.pdf
BOOST YOUR CREDIBILITY & TRUST WITH VIDEO TESTIMONIALS.pdf
 
Generate Revenue with Contact Center Business Model Strategy
Generate Revenue with Contact Center Business Model StrategyGenerate Revenue with Contact Center Business Model Strategy
Generate Revenue with Contact Center Business Model Strategy
 
Alauddin Trust | Charity Empowering People in Need
Alauddin Trust | Charity Empowering People in NeedAlauddin Trust | Charity Empowering People in Need
Alauddin Trust | Charity Empowering People in Need
 
Material Testing Lab Services in Dubai.pdf
Material Testing Lab Services in Dubai.pdfMaterial Testing Lab Services in Dubai.pdf
Material Testing Lab Services in Dubai.pdf
 
Unification of SMS API in Pakistan | Best SMS API Service Provider
Unification of SMS API in Pakistan | Best SMS API Service ProviderUnification of SMS API in Pakistan | Best SMS API Service Provider
Unification of SMS API in Pakistan | Best SMS API Service Provider
 
Digitalz Pro Media & Technologies - Best Digital Marketing Company in Faridabad
Digitalz Pro Media & Technologies - Best Digital Marketing Company in FaridabadDigitalz Pro Media & Technologies - Best Digital Marketing Company in Faridabad
Digitalz Pro Media & Technologies - Best Digital Marketing Company in Faridabad
 
How Can I Apply in India (2024) for a US B1/B2 Visa Renewal?
How Can I Apply in India (2024) for a US B1/B2 Visa Renewal?How Can I Apply in India (2024) for a US B1/B2 Visa Renewal?
How Can I Apply in India (2024) for a US B1/B2 Visa Renewal?
 
OpenText Vulnerability Assessment & Penetration Testing
OpenText Vulnerability Assessment & Penetration TestingOpenText Vulnerability Assessment & Penetration Testing
OpenText Vulnerability Assessment & Penetration Testing
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
 

Featured (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

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