SlideShare a Scribd company logo
1 of 17
1
ASSIGNMENT 7 C – MERGING DATA FILES IN STATA
Download the world development data covering the years 2000-
2016 from the website
“http://databank.worldbank.org/data/reports.aspx?source=World
-Governance-Indicators” for the
following upper-middle-income countries.
Countries of Interest:
Albania Ecuador Montenegro
Algeria Equatorial Guinea Namibia
American Samoa Fiji Nauru
Argentina Gabon Panama
Azerbaijan Grenada Paraguay
Belarus Guyana Peru
Belize Iran, Islamic Rep. Romania
Bosnia and Herzegovina Iraq Russian Federation
Botswana Jamaica Samoa
Brazil Kazakhstan Serbia
Bulgaria Lebanon South Africa
China Libya St. Lucia
Colombia Macedonia, FYR St. Vincent and the Grenadines
Costa Rica Malaysia Suriname
Croatia Maldives Thailand
Cuba Marshall Islands Tonga
Dominica Mauritius Turkey
Dominican Republic Mexico Turkmenistan
Tuvalu
Venezuela, RB
Variables of Interest
Control of Corruption: Estimate
Government Effectiveness: Estimate
Political Stability and Absence of Violence/Terrorism:
Estimate
Regulatory Quality: Estimate
Rule of Law: Estimate
Voice and Accountability: Estimate
2
STEP 1 - Download the data from the World-Governance-
Indicators database as shown below
STEP 2 - Check the variables of interest
3
Please make sure you are checking the variables with
“Estimates”.
TO VIEW THE DEFINITIONS OF THE VARIABLES
4
Step 3 – Select countries of interest
5
Step 4 – Click on “Time” and select the “year range” you are
interested in (2000-2016)
6
Step 5 – Click on the “Layout” as shown below
Change the time layout to “Row,” series to “Column” and
Country to “Row.”
Next, click on the “apply changes.”
Step 6 – Click on the “Download option” and select “Excel” as
shown below
7
STEP 7: Using Excel, Replace the Missing Values With “.” (See
previous assignments)
STEP 8: SAVE THE EXCEL DATA FILE ON YOUR
COMPUTER PREFERABLY IN A
FOLDER
STEP 9: IMPORT YOUR DATA INTO STATA AND NAME
YOUR DATA SET
“WORLD_GOVERNANCE_INDICATORS.” (See previous
assignments for steps)
8
STEP 10; RENAME THE VARIABLES AS SHOWN BELOW
(See previous assignments for
steps)
Using stata, merge the data set from “ASSIGNMENT 3B” with
this dataset
VERY IMPORTANT Note: Merging two datasets requires that
both have at least one variable in
common (either string or numeric).
This statement requires that the variable name for “Time” and
“Country” should be the same in the two
data set
MERGING THE DATASET FROM “ASSIGNMENT 3” WITH
THE DATA FROM THE
WORLD GOVERNANCE INDICATORS
Merging data files in stata
https://www.youtube.com/watch?v=EV-5PztbHs0
https://www.youtube.com/watch?v=Uh7C0mlhB3g&t=54s
https://www.youtube.com/watch?v=2etG_34ODoc
I will strongly encourage you to watch these videos before
merging
I will also strongly recommend you read the notes in the link
below before you start
merging
https://www.princeton.edu/~otorres/Merge101.pdf
Original Variable Name Afte r Re naming
Control of Corruption: Estimate Corruption
Government Effectiveness: Estimate Gov't_Effectiveness
Political Stability and Absence of Violence/Terrorism: Estimate
Political_Stability
Regulatory Quality: Estimate Reg't_Quality
Rule of Law: Estimate Rule_of_Law
Voice and Accountability: Estimate Voice_Accountability
https://www.youtube.com/watch?v=EV-5PztbHs0
https://www.youtube.com/watch?v=Uh7C0mlhB3g&t=54s
https://www.youtube.com/watch?v=2etG_34ODoc
https://www.princeton.edu/~otorres/Merge101.pdf
9
STEP 1 – Open “Assignment 3” dataset in Stata as shown below
10
Remember, the way you have named “Time” and “Country” in
Assignment 3 B should be
the same as you have in the “World Governance Indicators”
STEP 2 – Merge “Assignment 3” dataset with the one from the
World Governance Indicators
11
Note: Very Important
Key variables; Time Country_id
The key variables must be the same in the two datasets
regarding naming.
If “Time” and “Country_id” are named differently in the two
dataset, your data will not
merge
12
STEP 3 – Save your new data set and send it to me via
blackboard
Answer Format
1. Send me your new data file via blackboard
1
BADM 735 - Comparative Economics – Assignment Five (C)
Creating Scatter Diagrams and Correlation Matrix Using Stata
A scatter diagram plots two variables taken from the same point
in time for different countries
to show relationship between the two variables.
For better understanding of scatter plots watch the video
contained in the link below
https://www.youtube.com/watch?v=30LcZqRfPRY
According to the text, economic outcomes measured by
economic growth is affected by a number
of factors. Also, hundreds of empirical studies on economic
growth across countries have
highlighted the correlation between economic growth and a
variety of variables.
a) Using your data from Assignment 3 B: Construct a
scatterplot, in stata, that shows the
relationship between:
measure of Investment)
expenditure (% of GDP)
c growth and Inflation, consumer prices (annual %)
(% of GDP)
GDP)
**Economic growth is our dependent variable; all the other
variables are independent**
The graphs below should serve as a guide.
According to the graph, there appears to be a
positive correlation between Economic
Growth and Investment. The Correlation
coefficient is about 0.154 which confirms a
weak positive correlation between the two
variables.
https://www.youtube.com/watch?v=30LcZqRfPRY
2
STATA COMMANDS FOR SCATTER PLOTS
STEP 1: USING THE COMMAND WINDOW INSTALL
“asdoc” AS SHOWN BELOW
“asdoc” is an add-on to stata that allows you to produce nicely
formatted tables tables in stata
STEP 2: USING THE YOUR DO-FILE YOU CAN CREATE
SCATTER PLOTS AS
SHOWN BELOW
-Because a scatter diagram plots two variables
or shows the relationship
between two variables.
- Fit a line in the scatter plot
independent variable ( as you can see
economic growth comes before trade)
Please note also that you have to run the same command for all
the other relationships; for
example to show the relationship between economic growth and
inflation you run:
twoway (scatter Economic_Growth Inflation) (lfit
Economic_Growth Inflation)
STEP 3: EDITING, FORMATTING AND SAVING YOUR
GRAPH
It is important you edit your graph to conform to the scatter
plot shown above. The video
contained in the link below should help you edit and format
your graph.
https://www.youtube.com/watch?v=PWFZ_-eQd8I&t=296s
STEP 4: COPY YOUR GRAPHS INTO WORD
https://www.youtube.com/watch?v=PWFZ_-eQd8I&t=296s
3
b) Create a correlation matrix table that shows pairwise
correlation coefficients between the
following variables (without significance test): GDP growth
(annual %), Gross capital
formation (% of GDP), General government final consumption
expenditure (% of GDP),
Trade (% of GDP), Inflation, consumer prices (annual %),
Foreign direct investment, net
inflows (% of GDP), Population, total, and Total natural
resources rents (% of GDP)
For better understanding of correlations watch the video
contained in the link below
https://www.youtube.com/watch?v=jf-SIOFUuEo
STATA COMMANDS FOR CORRELATION MATRIX
USING THE YOUR DO-FILE YOU CAN GENERATE THE
CORRELATION MATRIX
AS SHOWN BELOW
A sample shot of a correlation matrix
The 0.154 shows the strength of the relationship between
Economic growth and Investment
https://www.youtube.com/watch?v=jf-SIOFUuEo
4
c) Compare the correlation matrix with the scatter graphs. See
the example below
According to the graph, there appears to be a
positive correlation between Economic
Growth and Investment. The Correlation
coefficient is about 0.154 which confirms a
weak positive correlation between the two
variables.
***Please do not hesitate to call or email if you need
assistance***
1  ASSIGNMENT 7 C – MERGING DATA FILES IN STATA Do.docx

More Related Content

Similar to 1 ASSIGNMENT 7 C – MERGING DATA FILES IN STATA Do.docx

Global Digital 2022 Report
Global Digital 2022 ReportGlobal Digital 2022 Report
Global Digital 2022 ReportMarketingTrips
 
Digital 2022 April Global Statshot Report (Apr 2022) v01
Digital 2022 April Global Statshot Report (Apr 2022) v01Digital 2022 April Global Statshot Report (Apr 2022) v01
Digital 2022 April Global Statshot Report (Apr 2022) v01DataReportal
 
Pillar III presentation 2 27-15 - redacted version
Pillar III presentation 2 27-15 - redacted versionPillar III presentation 2 27-15 - redacted version
Pillar III presentation 2 27-15 - redacted versionBenjamin Huston
 
Case Notes on MW Petroleum Corporation (A)Why Should We Care A.docx
Case Notes on MW Petroleum Corporation (A)Why Should We Care A.docxCase Notes on MW Petroleum Corporation (A)Why Should We Care A.docx
Case Notes on MW Petroleum Corporation (A)Why Should We Care A.docxwendolynhalbert
 
Consumer Price Index for All Urban Consumers – Gasoline vs. Ai.docx
Consumer Price Index for All Urban Consumers – Gasoline vs. Ai.docxConsumer Price Index for All Urban Consumers – Gasoline vs. Ai.docx
Consumer Price Index for All Urban Consumers – Gasoline vs. Ai.docxbobbywlane695641
 
Calculation contex in sap business objects
Calculation contex in sap business objectsCalculation contex in sap business objects
Calculation contex in sap business objectsDmitry Anoshin
 
Compute the inflation rate for each year 1993-201 2 and determ.docx
Compute the inflation rate for each year 1993-201 2 and determ.docxCompute the inflation rate for each year 1993-201 2 and determ.docx
Compute the inflation rate for each year 1993-201 2 and determ.docxmaxinesmith73660
 
ECON|i and the Regional Accounts
ECON|i and the Regional AccountsECON|i and the Regional Accounts
ECON|i and the Regional AccountsEconomyModule
 
Multivariate analysis of the impact of the commercial banks on the economic g...
Multivariate analysis of the impact of the commercial banks on the economic g...Multivariate analysis of the impact of the commercial banks on the economic g...
Multivariate analysis of the impact of the commercial banks on the economic g...Alexander Decker
 
Foundations of Financial Sector Mechanisms and Economic Growth in Emerging Ec...
Foundations of Financial Sector Mechanisms and Economic Growth in Emerging Ec...Foundations of Financial Sector Mechanisms and Economic Growth in Emerging Ec...
Foundations of Financial Sector Mechanisms and Economic Growth in Emerging Ec...iosrjce
 
Estimating the Uncertainty of the Economic Forecast Using CBO’s Bayesian Vect...
Estimating the Uncertainty of the Economic Forecast Using CBO’s Bayesian Vect...Estimating the Uncertainty of the Economic Forecast Using CBO’s Bayesian Vect...
Estimating the Uncertainty of the Economic Forecast Using CBO’s Bayesian Vect...Congressional Budget Office
 
BUSINESS FINANCE BBUS350Stock Portfolio ProjectObjectiveTh.docx
BUSINESS FINANCE BBUS350Stock Portfolio ProjectObjectiveTh.docxBUSINESS FINANCE BBUS350Stock Portfolio ProjectObjectiveTh.docx
BUSINESS FINANCE BBUS350Stock Portfolio ProjectObjectiveTh.docxfelicidaddinwoodie
 
BUSINESS FINANCE BBUS350Stock Portfolio ProjectObjectiveTh.docx
BUSINESS FINANCE BBUS350Stock Portfolio ProjectObjectiveTh.docxBUSINESS FINANCE BBUS350Stock Portfolio ProjectObjectiveTh.docx
BUSINESS FINANCE BBUS350Stock Portfolio ProjectObjectiveTh.docxjasoninnes20
 
Digital 2022 October Global Statshot Report (Oct 2022) v02
Digital 2022 October Global Statshot Report (Oct 2022) v02Digital 2022 October Global Statshot Report (Oct 2022) v02
Digital 2022 October Global Statshot Report (Oct 2022) v02DataReportal
 
Chapter 1 57.What is the difference between recession and de.docx
Chapter 1 57.What is the difference between recession and de.docxChapter 1 57.What is the difference between recession and de.docx
Chapter 1 57.What is the difference between recession and de.docxsleeperharwell
 
University of Massachusetts BostonDepartment of EconomicsEcon .docx
University of Massachusetts BostonDepartment of EconomicsEcon .docxUniversity of Massachusetts BostonDepartment of EconomicsEcon .docx
University of Massachusetts BostonDepartment of EconomicsEcon .docxdickonsondorris
 

Similar to 1 ASSIGNMENT 7 C – MERGING DATA FILES IN STATA Do.docx (17)

Global Digital 2022 Report
Global Digital 2022 ReportGlobal Digital 2022 Report
Global Digital 2022 Report
 
Digital 2022 April Global Statshot Report (Apr 2022) v01
Digital 2022 April Global Statshot Report (Apr 2022) v01Digital 2022 April Global Statshot Report (Apr 2022) v01
Digital 2022 April Global Statshot Report (Apr 2022) v01
 
Pillar III presentation 2 27-15 - redacted version
Pillar III presentation 2 27-15 - redacted versionPillar III presentation 2 27-15 - redacted version
Pillar III presentation 2 27-15 - redacted version
 
Case Notes on MW Petroleum Corporation (A)Why Should We Care A.docx
Case Notes on MW Petroleum Corporation (A)Why Should We Care A.docxCase Notes on MW Petroleum Corporation (A)Why Should We Care A.docx
Case Notes on MW Petroleum Corporation (A)Why Should We Care A.docx
 
Consumer Price Index for All Urban Consumers – Gasoline vs. Ai.docx
Consumer Price Index for All Urban Consumers – Gasoline vs. Ai.docxConsumer Price Index for All Urban Consumers – Gasoline vs. Ai.docx
Consumer Price Index for All Urban Consumers – Gasoline vs. Ai.docx
 
Calculation contex in sap business objects
Calculation contex in sap business objectsCalculation contex in sap business objects
Calculation contex in sap business objects
 
Compute the inflation rate for each year 1993-201 2 and determ.docx
Compute the inflation rate for each year 1993-201 2 and determ.docxCompute the inflation rate for each year 1993-201 2 and determ.docx
Compute the inflation rate for each year 1993-201 2 and determ.docx
 
UNIT-I-TS&F.pptx
UNIT-I-TS&F.pptxUNIT-I-TS&F.pptx
UNIT-I-TS&F.pptx
 
ECON|i and the Regional Accounts
ECON|i and the Regional AccountsECON|i and the Regional Accounts
ECON|i and the Regional Accounts
 
Multivariate analysis of the impact of the commercial banks on the economic g...
Multivariate analysis of the impact of the commercial banks on the economic g...Multivariate analysis of the impact of the commercial banks on the economic g...
Multivariate analysis of the impact of the commercial banks on the economic g...
 
Foundations of Financial Sector Mechanisms and Economic Growth in Emerging Ec...
Foundations of Financial Sector Mechanisms and Economic Growth in Emerging Ec...Foundations of Financial Sector Mechanisms and Economic Growth in Emerging Ec...
Foundations of Financial Sector Mechanisms and Economic Growth in Emerging Ec...
 
Estimating the Uncertainty of the Economic Forecast Using CBO’s Bayesian Vect...
Estimating the Uncertainty of the Economic Forecast Using CBO’s Bayesian Vect...Estimating the Uncertainty of the Economic Forecast Using CBO’s Bayesian Vect...
Estimating the Uncertainty of the Economic Forecast Using CBO’s Bayesian Vect...
 
BUSINESS FINANCE BBUS350Stock Portfolio ProjectObjectiveTh.docx
BUSINESS FINANCE BBUS350Stock Portfolio ProjectObjectiveTh.docxBUSINESS FINANCE BBUS350Stock Portfolio ProjectObjectiveTh.docx
BUSINESS FINANCE BBUS350Stock Portfolio ProjectObjectiveTh.docx
 
BUSINESS FINANCE BBUS350Stock Portfolio ProjectObjectiveTh.docx
BUSINESS FINANCE BBUS350Stock Portfolio ProjectObjectiveTh.docxBUSINESS FINANCE BBUS350Stock Portfolio ProjectObjectiveTh.docx
BUSINESS FINANCE BBUS350Stock Portfolio ProjectObjectiveTh.docx
 
Digital 2022 October Global Statshot Report (Oct 2022) v02
Digital 2022 October Global Statshot Report (Oct 2022) v02Digital 2022 October Global Statshot Report (Oct 2022) v02
Digital 2022 October Global Statshot Report (Oct 2022) v02
 
Chapter 1 57.What is the difference between recession and de.docx
Chapter 1 57.What is the difference between recession and de.docxChapter 1 57.What is the difference between recession and de.docx
Chapter 1 57.What is the difference between recession and de.docx
 
University of Massachusetts BostonDepartment of EconomicsEcon .docx
University of Massachusetts BostonDepartment of EconomicsEcon .docxUniversity of Massachusetts BostonDepartment of EconomicsEcon .docx
University of Massachusetts BostonDepartment of EconomicsEcon .docx
 

More from oswald1horne84988

1 Network Analysis and Design This assignment is.docx
1  Network Analysis and Design  This assignment is.docx1  Network Analysis and Design  This assignment is.docx
1 Network Analysis and Design This assignment is.docxoswald1horne84988
 
1 Name _____________________________ MTH129 Fall .docx
1  Name  _____________________________ MTH129 Fall .docx1  Name  _____________________________ MTH129 Fall .docx
1 Name _____________________________ MTH129 Fall .docxoswald1horne84988
 
1 Lab 8 -Ballistic Pendulum Since you will be desig.docx
1  Lab 8 -Ballistic Pendulum Since you will be desig.docx1  Lab 8 -Ballistic Pendulum Since you will be desig.docx
1 Lab 8 -Ballistic Pendulum Since you will be desig.docxoswald1horne84988
 
1 I Samuel 8-10 Israel Asks for a King 8 When S.docx
1  I Samuel 8-10 Israel Asks for a King 8 When S.docx1  I Samuel 8-10 Israel Asks for a King 8 When S.docx
1 I Samuel 8-10 Israel Asks for a King 8 When S.docxoswald1horne84988
 
1 Journal Entry #9 What principle did you select .docx
1  Journal Entry #9 What principle did you select .docx1  Journal Entry #9 What principle did you select .docx
1 Journal Entry #9 What principle did you select .docxoswald1horne84988
 
1 HCA 448 Case 2 for 10042018 Recently, a pat.docx
1  HCA 448 Case 2 for 10042018 Recently, a pat.docx1  HCA 448 Case 2 for 10042018 Recently, a pat.docx
1 HCA 448 Case 2 for 10042018 Recently, a pat.docxoswald1horne84988
 
1 Chapter 2 Understanding Rhetoric Goal To re.docx
1  Chapter 2 Understanding Rhetoric  Goal To re.docx1  Chapter 2 Understanding Rhetoric  Goal To re.docx
1 Chapter 2 Understanding Rhetoric Goal To re.docxoswald1horne84988
 
1 HC2091 Finance for Business Trimester 2 2.docx
1  HC2091 Finance for Business      Trimester 2 2.docx1  HC2091 Finance for Business      Trimester 2 2.docx
1 HC2091 Finance for Business Trimester 2 2.docxoswald1horne84988
 
1 ECE 175 Computer Programming for Engineering Applica.docx
1  ECE 175 Computer Programming for Engineering Applica.docx1  ECE 175 Computer Programming for Engineering Applica.docx
1 ECE 175 Computer Programming for Engineering Applica.docxoswald1horne84988
 
1 Cinemark Holdings Inc. Simulated ERM Program .docx
1  Cinemark Holdings Inc. Simulated ERM Program  .docx1  Cinemark Holdings Inc. Simulated ERM Program  .docx
1 Cinemark Holdings Inc. Simulated ERM Program .docxoswald1horne84988
 
1 Figure 1 Picture of Richard Selzer Richard Selz.docx
1  Figure 1 Picture of Richard Selzer Richard Selz.docx1  Figure 1 Picture of Richard Selzer Richard Selz.docx
1 Figure 1 Picture of Richard Selzer Richard Selz.docxoswald1horne84988
 
1 Films on Africa 1. A star () next to a film i.docx
1  Films on Africa  1. A star () next to a film i.docx1  Films on Africa  1. A star () next to a film i.docx
1 Films on Africa 1. A star () next to a film i.docxoswald1horne84988
 
1 Contemporary Approaches in Management of Risk in .docx
1  Contemporary Approaches in Management of Risk in .docx1  Contemporary Approaches in Management of Risk in .docx
1 Contemporary Approaches in Management of Risk in .docxoswald1horne84988
 
1 Assignment front Sheet Qualification Unit n.docx
1  Assignment front Sheet   Qualification Unit n.docx1  Assignment front Sheet   Qualification Unit n.docx
1 Assignment front Sheet Qualification Unit n.docxoswald1horne84988
 
1 BBS300 Empirical Research Methods for Business .docx
1  BBS300 Empirical  Research  Methods  for  Business .docx1  BBS300 Empirical  Research  Methods  for  Business .docx
1 BBS300 Empirical Research Methods for Business .docxoswald1horne84988
 
1 Assessment details for ALL students Assessment item.docx
1  Assessment details for ALL students Assessment item.docx1  Assessment details for ALL students Assessment item.docx
1 Assessment details for ALL students Assessment item.docxoswald1horne84988
 
1 CDU APA 6th Referencing Style Guide (Febru.docx
1  CDU APA 6th  Referencing Style Guide (Febru.docx1  CDU APA 6th  Referencing Style Guide (Febru.docx
1 CDU APA 6th Referencing Style Guide (Febru.docxoswald1horne84988
 
1 BIOL 102 Lab 9 Simulated ABO and Rh Blood Typing.docx
1  BIOL 102 Lab 9 Simulated ABO and Rh Blood Typing.docx1  BIOL 102 Lab 9 Simulated ABO and Rh Blood Typing.docx
1 BIOL 102 Lab 9 Simulated ABO and Rh Blood Typing.docxoswald1horne84988
 
1 Business Intelligence Case Project Backgro.docx
1  Business Intelligence Case    Project Backgro.docx1  Business Intelligence Case    Project Backgro.docx
1 Business Intelligence Case Project Backgro.docxoswald1horne84988
 
1 Essay #2 Multimodal Analysis In this 4-5 page p.docx
1  Essay #2 Multimodal Analysis In this 4-5 page p.docx1  Essay #2 Multimodal Analysis In this 4-5 page p.docx
1 Essay #2 Multimodal Analysis In this 4-5 page p.docxoswald1horne84988
 

More from oswald1horne84988 (20)

1 Network Analysis and Design This assignment is.docx
1  Network Analysis and Design  This assignment is.docx1  Network Analysis and Design  This assignment is.docx
1 Network Analysis and Design This assignment is.docx
 
1 Name _____________________________ MTH129 Fall .docx
1  Name  _____________________________ MTH129 Fall .docx1  Name  _____________________________ MTH129 Fall .docx
1 Name _____________________________ MTH129 Fall .docx
 
1 Lab 8 -Ballistic Pendulum Since you will be desig.docx
1  Lab 8 -Ballistic Pendulum Since you will be desig.docx1  Lab 8 -Ballistic Pendulum Since you will be desig.docx
1 Lab 8 -Ballistic Pendulum Since you will be desig.docx
 
1 I Samuel 8-10 Israel Asks for a King 8 When S.docx
1  I Samuel 8-10 Israel Asks for a King 8 When S.docx1  I Samuel 8-10 Israel Asks for a King 8 When S.docx
1 I Samuel 8-10 Israel Asks for a King 8 When S.docx
 
1 Journal Entry #9 What principle did you select .docx
1  Journal Entry #9 What principle did you select .docx1  Journal Entry #9 What principle did you select .docx
1 Journal Entry #9 What principle did you select .docx
 
1 HCA 448 Case 2 for 10042018 Recently, a pat.docx
1  HCA 448 Case 2 for 10042018 Recently, a pat.docx1  HCA 448 Case 2 for 10042018 Recently, a pat.docx
1 HCA 448 Case 2 for 10042018 Recently, a pat.docx
 
1 Chapter 2 Understanding Rhetoric Goal To re.docx
1  Chapter 2 Understanding Rhetoric  Goal To re.docx1  Chapter 2 Understanding Rhetoric  Goal To re.docx
1 Chapter 2 Understanding Rhetoric Goal To re.docx
 
1 HC2091 Finance for Business Trimester 2 2.docx
1  HC2091 Finance for Business      Trimester 2 2.docx1  HC2091 Finance for Business      Trimester 2 2.docx
1 HC2091 Finance for Business Trimester 2 2.docx
 
1 ECE 175 Computer Programming for Engineering Applica.docx
1  ECE 175 Computer Programming for Engineering Applica.docx1  ECE 175 Computer Programming for Engineering Applica.docx
1 ECE 175 Computer Programming for Engineering Applica.docx
 
1 Cinemark Holdings Inc. Simulated ERM Program .docx
1  Cinemark Holdings Inc. Simulated ERM Program  .docx1  Cinemark Holdings Inc. Simulated ERM Program  .docx
1 Cinemark Holdings Inc. Simulated ERM Program .docx
 
1 Figure 1 Picture of Richard Selzer Richard Selz.docx
1  Figure 1 Picture of Richard Selzer Richard Selz.docx1  Figure 1 Picture of Richard Selzer Richard Selz.docx
1 Figure 1 Picture of Richard Selzer Richard Selz.docx
 
1 Films on Africa 1. A star () next to a film i.docx
1  Films on Africa  1. A star () next to a film i.docx1  Films on Africa  1. A star () next to a film i.docx
1 Films on Africa 1. A star () next to a film i.docx
 
1 Contemporary Approaches in Management of Risk in .docx
1  Contemporary Approaches in Management of Risk in .docx1  Contemporary Approaches in Management of Risk in .docx
1 Contemporary Approaches in Management of Risk in .docx
 
1 Assignment front Sheet Qualification Unit n.docx
1  Assignment front Sheet   Qualification Unit n.docx1  Assignment front Sheet   Qualification Unit n.docx
1 Assignment front Sheet Qualification Unit n.docx
 
1 BBS300 Empirical Research Methods for Business .docx
1  BBS300 Empirical  Research  Methods  for  Business .docx1  BBS300 Empirical  Research  Methods  for  Business .docx
1 BBS300 Empirical Research Methods for Business .docx
 
1 Assessment details for ALL students Assessment item.docx
1  Assessment details for ALL students Assessment item.docx1  Assessment details for ALL students Assessment item.docx
1 Assessment details for ALL students Assessment item.docx
 
1 CDU APA 6th Referencing Style Guide (Febru.docx
1  CDU APA 6th  Referencing Style Guide (Febru.docx1  CDU APA 6th  Referencing Style Guide (Febru.docx
1 CDU APA 6th Referencing Style Guide (Febru.docx
 
1 BIOL 102 Lab 9 Simulated ABO and Rh Blood Typing.docx
1  BIOL 102 Lab 9 Simulated ABO and Rh Blood Typing.docx1  BIOL 102 Lab 9 Simulated ABO and Rh Blood Typing.docx
1 BIOL 102 Lab 9 Simulated ABO and Rh Blood Typing.docx
 
1 Business Intelligence Case Project Backgro.docx
1  Business Intelligence Case    Project Backgro.docx1  Business Intelligence Case    Project Backgro.docx
1 Business Intelligence Case Project Backgro.docx
 
1 Essay #2 Multimodal Analysis In this 4-5 page p.docx
1  Essay #2 Multimodal Analysis In this 4-5 page p.docx1  Essay #2 Multimodal Analysis In this 4-5 page p.docx
1 Essay #2 Multimodal Analysis In this 4-5 page p.docx
 

Recently uploaded

Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 

Recently uploaded (20)

Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 

1 ASSIGNMENT 7 C – MERGING DATA FILES IN STATA Do.docx

  • 1. 1 ASSIGNMENT 7 C – MERGING DATA FILES IN STATA Download the world development data covering the years 2000- 2016 from the website “http://databank.worldbank.org/data/reports.aspx?source=World -Governance-Indicators” for the following upper-middle-income countries. Countries of Interest: Albania Ecuador Montenegro Algeria Equatorial Guinea Namibia American Samoa Fiji Nauru Argentina Gabon Panama Azerbaijan Grenada Paraguay Belarus Guyana Peru Belize Iran, Islamic Rep. Romania Bosnia and Herzegovina Iraq Russian Federation
  • 2. Botswana Jamaica Samoa Brazil Kazakhstan Serbia Bulgaria Lebanon South Africa China Libya St. Lucia Colombia Macedonia, FYR St. Vincent and the Grenadines Costa Rica Malaysia Suriname Croatia Maldives Thailand Cuba Marshall Islands Tonga Dominica Mauritius Turkey Dominican Republic Mexico Turkmenistan Tuvalu Venezuela, RB Variables of Interest Control of Corruption: Estimate Government Effectiveness: Estimate Political Stability and Absence of Violence/Terrorism: Estimate
  • 3. Regulatory Quality: Estimate Rule of Law: Estimate Voice and Accountability: Estimate 2 STEP 1 - Download the data from the World-Governance- Indicators database as shown below STEP 2 - Check the variables of interest 3 Please make sure you are checking the variables with “Estimates”.
  • 4. TO VIEW THE DEFINITIONS OF THE VARIABLES 4 Step 3 – Select countries of interest 5 Step 4 – Click on “Time” and select the “year range” you are interested in (2000-2016) 6
  • 5. Step 5 – Click on the “Layout” as shown below Change the time layout to “Row,” series to “Column” and Country to “Row.” Next, click on the “apply changes.” Step 6 – Click on the “Download option” and select “Excel” as shown below 7 STEP 7: Using Excel, Replace the Missing Values With “.” (See previous assignments) STEP 8: SAVE THE EXCEL DATA FILE ON YOUR COMPUTER PREFERABLY IN A FOLDER STEP 9: IMPORT YOUR DATA INTO STATA AND NAME YOUR DATA SET “WORLD_GOVERNANCE_INDICATORS.” (See previous
  • 6. assignments for steps) 8 STEP 10; RENAME THE VARIABLES AS SHOWN BELOW (See previous assignments for steps) Using stata, merge the data set from “ASSIGNMENT 3B” with this dataset VERY IMPORTANT Note: Merging two datasets requires that both have at least one variable in common (either string or numeric). This statement requires that the variable name for “Time” and “Country” should be the same in the two data set MERGING THE DATASET FROM “ASSIGNMENT 3” WITH THE DATA FROM THE
  • 7. WORLD GOVERNANCE INDICATORS Merging data files in stata https://www.youtube.com/watch?v=EV-5PztbHs0 https://www.youtube.com/watch?v=Uh7C0mlhB3g&t=54s https://www.youtube.com/watch?v=2etG_34ODoc I will strongly encourage you to watch these videos before merging I will also strongly recommend you read the notes in the link below before you start merging https://www.princeton.edu/~otorres/Merge101.pdf Original Variable Name Afte r Re naming Control of Corruption: Estimate Corruption Government Effectiveness: Estimate Gov't_Effectiveness Political Stability and Absence of Violence/Terrorism: Estimate Political_Stability Regulatory Quality: Estimate Reg't_Quality
  • 8. Rule of Law: Estimate Rule_of_Law Voice and Accountability: Estimate Voice_Accountability https://www.youtube.com/watch?v=EV-5PztbHs0 https://www.youtube.com/watch?v=Uh7C0mlhB3g&t=54s https://www.youtube.com/watch?v=2etG_34ODoc https://www.princeton.edu/~otorres/Merge101.pdf 9 STEP 1 – Open “Assignment 3” dataset in Stata as shown below 10 Remember, the way you have named “Time” and “Country” in Assignment 3 B should be the same as you have in the “World Governance Indicators” STEP 2 – Merge “Assignment 3” dataset with the one from the World Governance Indicators
  • 9. 11 Note: Very Important Key variables; Time Country_id The key variables must be the same in the two datasets regarding naming. If “Time” and “Country_id” are named differently in the two dataset, your data will not merge 12 STEP 3 – Save your new data set and send it to me via blackboard
  • 10. Answer Format 1. Send me your new data file via blackboard 1 BADM 735 - Comparative Economics – Assignment Five (C) Creating Scatter Diagrams and Correlation Matrix Using Stata A scatter diagram plots two variables taken from the same point in time for different countries to show relationship between the two variables. For better understanding of scatter plots watch the video contained in the link below https://www.youtube.com/watch?v=30LcZqRfPRY
  • 11. According to the text, economic outcomes measured by economic growth is affected by a number of factors. Also, hundreds of empirical studies on economic growth across countries have highlighted the correlation between economic growth and a variety of variables. a) Using your data from Assignment 3 B: Construct a scatterplot, in stata, that shows the relationship between: measure of Investment) expenditure (% of GDP) c growth and Inflation, consumer prices (annual %) (% of GDP) GDP) **Economic growth is our dependent variable; all the other variables are independent**
  • 12. The graphs below should serve as a guide. According to the graph, there appears to be a positive correlation between Economic Growth and Investment. The Correlation coefficient is about 0.154 which confirms a weak positive correlation between the two variables. https://www.youtube.com/watch?v=30LcZqRfPRY 2 STATA COMMANDS FOR SCATTER PLOTS STEP 1: USING THE COMMAND WINDOW INSTALL “asdoc” AS SHOWN BELOW “asdoc” is an add-on to stata that allows you to produce nicely
  • 13. formatted tables tables in stata STEP 2: USING THE YOUR DO-FILE YOU CAN CREATE SCATTER PLOTS AS SHOWN BELOW -Because a scatter diagram plots two variables or shows the relationship between two variables. - Fit a line in the scatter plot independent variable ( as you can see economic growth comes before trade) Please note also that you have to run the same command for all the other relationships; for example to show the relationship between economic growth and inflation you run: twoway (scatter Economic_Growth Inflation) (lfit Economic_Growth Inflation) STEP 3: EDITING, FORMATTING AND SAVING YOUR GRAPH It is important you edit your graph to conform to the scatter plot shown above. The video
  • 14. contained in the link below should help you edit and format your graph. https://www.youtube.com/watch?v=PWFZ_-eQd8I&t=296s STEP 4: COPY YOUR GRAPHS INTO WORD https://www.youtube.com/watch?v=PWFZ_-eQd8I&t=296s 3 b) Create a correlation matrix table that shows pairwise correlation coefficients between the following variables (without significance test): GDP growth (annual %), Gross capital formation (% of GDP), General government final consumption expenditure (% of GDP), Trade (% of GDP), Inflation, consumer prices (annual %), Foreign direct investment, net inflows (% of GDP), Population, total, and Total natural resources rents (% of GDP) For better understanding of correlations watch the video contained in the link below https://www.youtube.com/watch?v=jf-SIOFUuEo
  • 15. STATA COMMANDS FOR CORRELATION MATRIX USING THE YOUR DO-FILE YOU CAN GENERATE THE CORRELATION MATRIX AS SHOWN BELOW A sample shot of a correlation matrix The 0.154 shows the strength of the relationship between Economic growth and Investment https://www.youtube.com/watch?v=jf-SIOFUuEo 4
  • 16. c) Compare the correlation matrix with the scatter graphs. See the example below According to the graph, there appears to be a positive correlation between Economic Growth and Investment. The Correlation coefficient is about 0.154 which confirms a weak positive correlation between the two variables. ***Please do not hesitate to call or email if you need assistance***