Suppose you want to merge two datasets in Stata. The variable for matching is yob, which stands for year of birth. The dataset in memory is population census data from Canada. That is, the dataset has information on every single resident of Canada. The dataset that you want to merge in has data on the level of GDP per capita in the year of birth. Which of the following commands should you use?
a) merge 1:1 yob using “GDPpercapita.dta”
b) merge m:1 yob using “GDPpercapita.dta”
c) merge 1:m yob using “GDPpercapita.dta”
d) None of these commands will work.
Answerr:
Option :2 merge m:1 yob using “GDPpercapita.dta” : Correct
The dataset we want to use merge has data on the level of the GDP per capita in the year of birth .The command for the same will be used is MERGE M:1 Yob using 'GDPpercapita.dta". This is the command which is used for this function of data .
Option :1 merge 1:1 yob using “GDPpercapita.dta” : Incorrect
This is incorrect as this is not the command which is used for the given function
Option :3 merge 1:m yob using “GDPpercapita.dta” : Incorrect
This is incorrect as this is not the command which is used for the given function
Option :4 None of these :Incorrect
As command of 2 option used for this function hence this one is incorrect .
Hope you Like Answer Hit Thumbs up and Give us feed back . Ask your Doubts in comments on Problem if any.
All the best Friends for your examination and most welcome
Get Answers For Free
Most questions answered within 1 hours.