Hi all,
I am running the code below where I perform a regression with an interaction term for three different samples. First, with 69 countries. Then, I drop variables resulting in 43. My final sample consists of 24.
The regression results for 69 and 43 countries are different. However, the results for 43 and 24 are the same.
This is very weird, as I delete observations. Moreover, the summary statistics for 69, 43 and 24 countries are different.
I have a feeling that it's due to the interaction term, since when I perform the analysis without this term, I get normal (different results) for 69, 43 and 24 countries. I appreciate all the help:
WITH interaction term
WITHOUT interaction term:
Please let me know if you have any solutions! It is very very much appreciated.
Kind regards,
Matt
I am running the code below where I perform a regression with an interaction term for three different samples. First, with 69 countries. Then, I drop variables resulting in 43. My final sample consists of 24.
The regression results for 69 and 43 countries are different. However, the results for 43 and 24 are the same.
This is very weird, as I delete observations. Moreover, the summary statistics for 69, 43 and 24 countries are different.
I have a feeling that it's due to the interaction term, since when I perform the analysis without this term, I get normal (different results) for 69, 43 and 24 countries. I appreciate all the help:
Code:
// Setting the directory and importing the dataset
clear
cd "/Users/matthijskallen/Desktop/MSc Finance/MSc Thesis Microfinance /STATA/Inter. POLS Dataset 29-11"
import excel "/Users/MMMXXX/Desktop/MSc Finance/MSc Thesis Microfinance /STATA/POLS Dataset 24-11/Panel Data 17-10.xlsx", sheet("Data") firstrow
// Drop some variables with no information
drop AI AJ AK AL AM AN AO
// Summary statistics
asdoc sum, save(Descriptives 69 countries) dec(3) title(Descriptive statistics 69 countries) replace
// Here we examine the regression for 69 countries, POLS C = 0, Where we replicate Hermes (2014)
reg Gini_DispSWIID c.GLPIntensity##c.MAS InflationGDPdeflatorannual Ruralpopulation Populationgrowthannual TradeofGDP Schoolenrollmentsecondary GDPgrowthadjustedforinflati Wageandsalariedworkerstotal Currenthealthexpenditureof LevelofdemocracyPolityV Arablelandoftotal
//Table for 69 countries, from Hermes excluding Swaziland
outreg2 using GLPTablecountries, word label replace adjr2 ctitle(The impact of GLP on Gini - 69 countries)
//Regressions, include an interaction term
reg Gini_DispSWIID BorrowerIntensity InflationGDPdeflatorannual Ruralpopulation Populationgrowthannual TradeofGDP Schoolenrollmentsecondary GDPgrowthadjustedforinflati Wageandsalariedworkerstotal Currenthealthexpenditureof LevelofdemocracyPolityV Arablelandoftotal
outreg2 using BITablecountries, word label replace adjr2 ctitle(The impact of BI on Gini - 69 countries)
// We drop Benin, Cameroon, Chad, Congo Rep., Congo Dem. Rep., Cote d'Ivoire, Guinea, Kenya, Madagascar, Malawi, Mozambique, Niger, Senegal, Sierra Leone, Togo, Tunisia, Mongolia, Nepal, Sri Lanka, Tajikistan, Timor-East, Yemen Rep., Haiti, Honduras, Paraguay, Russian Federation (26 countries) since we have no Hofstede data --> 43 left.
kountry Country, from(other) stuck
rename _ISO3N_ Country_ID
// Timor-East has no CountryID, so we have to drop it in another way.
drop if Country_ID==204
drop if Country_ID==120
drop if Country_ID==148
drop if Country_ID==178
drop if Country_ID==180
drop if Country_ID==384
drop if Country_ID==324
drop if Country_ID==404
drop if Country_ID==450
drop if Country_ID==454
drop if Country_ID==508
drop if Country_ID==562
drop if Country_ID==686
drop if Country_ID==694
drop if Country_ID==768
drop if Country_ID==788
drop if Country_ID==496
drop if Country_ID==524
drop if Country_ID==144
drop if Country_ID==762
drop if Country_ID==887
drop if Country_ID==332
drop if Country_ID==340
drop if Country_ID==600
drop if Country_ID==810
drop in 442/462
// Here we examine the regressions for 43 countries, dropped due to no Hofstede data.
//Summary Statistics
asdoc sum, save(Descriptives 43 countries) dec(3) title(Descriptive statistics 43 countries) replace
//Regressions
reg Gini_DispSWIID c.GLPIntensity##c.MAS InflationGDPdeflatorannual Ruralpopulation Populationgrowthannual TradeofGDP Schoolenrollmentsecondary GDPgrowthadjustedforinflati Wageandsalariedworkerstotal Currenthealthexpenditureof LevelofdemocracyPolityV Arablelandoftotal
outreg2 using GLPTablecountries, word label append adjr2 ctitle(The impact of GLP on Gini - 43 countries)
reg Gini_DispSWIID BorrowerIntensity InflationGDPdeflatorannual Ruralpopulation Populationgrowthannual TradeofGDP Schoolenrollmentsecondary GDPgrowthadjustedforinflati Wageandsalariedworkerstotal Currenthealthexpenditureof LevelofdemocracyPolityV Arablelandoftotal
outreg2 using BITablecountries, word label append adjr2 ctitle(The impact of BI on the Gini Index - 43 countries)
// Now we drop the countries for which we don't have PDI/IDV/MAS/UAI data.
// Therefore, we drop Albania, Armenia, Burkina Faso, Dominican Rep, Egypt, Ethiopia, Georgia, Ghana, Jordan, Kyrgyz Rep., Macedonia, Mali, Moldova, Nigeria, Rwanda, South Africa, Tanzania, Uganda, Zambia.
//North Macedonia has no CountryID, so we have to drop it in another way.
drop if Country_ID==8
drop if Country_ID==51
drop if Country_ID==854
drop if Country_ID==214
drop if Country_ID==818
drop if Country_ID==231
drop if Country_ID==268
drop if Country_ID==288
drop if Country_ID==400
drop if Country_ID==417
drop if Country_ID==466
drop if Country_ID==498
drop if Country_ID==566
drop if Country_ID==646
drop if Country_ID==710
drop if Country_ID==834
drop if Country_ID==800
drop if Country_ID==894
drop in 442/462
//This leaves us with 24 countries, namely Morocco, Bangladesh, China, India, Indonesia, Pakistan, Philippines, Thailand, Vietnam, Argentina, Brazil, Chile, Costa Rica, Ecuador, El Salvador, Guatemala, Mexico, Panama, Peru, Venezuela, Bulgaria, Romania, Serbia, Turkiye
//Summary Statistics
asdoc sum, save(Descriptives 24 countries) dec(3) title(Descriptive statistics 24 countries) replace
//Regressions
reg Gini_DispSWIID c.GLPIntensity##c.MAS InflationGDPdeflatorannual Ruralpopulation Populationgrowthannual TradeofGDP Schoolenrollmentsecondary GDPgrowthadjustedforinflati Wageandsalariedworkerstotal Currenthealthexpenditureof LevelofdemocracyPolityV Arablelandoftotal
outreg2 using GLPTablecountries, word seeout label append adjr2 ctitle(The impact of GLP on the Gini - 24 countries)
reg Gini_DispSWIID BorrowerIntensity InflationGDPdeflatorannual Ruralpopulation Populationgrowthannual TradeofGDP Schoolenrollmentsecondary GDPgrowthadjustedforinflati Wageandsalariedworkerstotal Currenthealthexpenditureof LevelofdemocracyPolityV Arablelandoftotal
outreg2 using BITablecountries, word seeout label append adjr2 ctitle(The impact of BI on the Gini - 24 countries)
Code:
Standard errors in parentheses *** p<0.01, ** p<0.05, * p<0.1
(1) (2) (3) VARIABLES The impact of GLP on Gini - 69 countries The impact of GLP on Gini - 43 countries The impact of GLP on the Gini - 24 countries GLP Intensity -327.0*** -308.5** -308.5** (120.6) (120.3) (120.3) MAS -0.0511*** -0.0422*** -0.0422*** (0.0161) (0.0162) (0.0162) c.GLPIntensity#c.MAS 4.625** 4.309** 4.309** (2.121) (2.118) (2.118) Inflation, GDP deflator (annual %) -0.103** -0.125** -0.125** (0.0514) (0.0538) (0.0538) Rural population, as a % of total -20.99*** -22.91*** -22.91*** (2.503) (2.575) (2.575) Population growth (annual %) 1.229*** 1.506*** 1.506*** (0.312) (0.319) (0.319) Trade (% of GDP) 0.0176** 0.0296*** 0.0296*** (0.00773) (0.00858) (0.00858) School enrollment, secondary (% gross) -0.0239* -0.0216 -0.0216 (0.0143) (0.0146) (0.0146) GDP growth (adjusted for inflation) 0.0688 0.0550 0.0550 (0.0481) (0.0499) (0.0499) Wage and salaried workers, total (% of total employment) -0.312*** -0.347*** -0.347*** (0.0191) (0.0216) (0.0216) Current health expenditure (% of GDP) 0.224* 0.357*** 0.357*** (0.122) (0.128) (0.128) Level of democracy (Polity V) 0.774*** 0.843*** 0.843*** (0.0794) (0.0836) (0.0836) Arable land (% of total) -0.155*** -0.139*** -0.139*** (0.0171) (0.0175) (0.0175) Constant 68.00*** 67.50*** 67.50*** (3.027) (3.032) (3.032) Observations 324 309 309 Adjusted R-squared 0.781 0.776 0.776
Code:
Standard errors in parentheses *** p<0.01, ** p<0.05, * p<0.1
(1) (2) (3) VARIABLES The impact of BI on Gini - 69 countries The impact of BI on the Gini Index - 43 countries The impact of BI on the Gini - 24 countries Borrower Intensity -19.18*** -23.57*** -22.84*** (7.074) (7.590) (4.759) Inflation, GDP deflator (annual %) 0.0726 0.0724 -0.0688 (0.0584) (0.0754) (0.0516) Rural population, as a % of total -2.121 0.620 -15.65*** (1.625) (2.118) (2.067) Population growth (annual %) 2.098*** 1.853*** 1.752*** (0.248) (0.271) (0.265) Trade (% of GDP) -0.0620*** -0.0881*** 0.0195*** (0.00733) (0.00889) (0.00699) School enrollment, secondary (% gross) 0.0468*** 0.00879 -0.00626 (0.0156) (0.0183) (0.0126) GDP growth (adjusted for inflation) 0.173*** 0.215*** 0.111** (0.0537) (0.0687) (0.0471) Wage and salaried workers, total (% of total employment) -0.0164 -0.00183 -0.280*** (0.0163) (0.0202) (0.0189) Current health expenditure (% of GDP) 0.311*** 0.504*** 0.420*** (0.111) (0.142) (0.120) Level of democracy (Polity V) 0.346*** 0.607*** 0.650*** (0.0713) (0.0881) (0.0659) Arable land (% of total) -0.0620*** -0.105*** -0.144*** (0.0162) (0.0194) (0.0158) Constant 39.20*** 40.34*** 58.75*** (1.933) (2.412) (2.114) Observations 792 583 352 Adjusted R-squared 0.236 0.337 0.755
Kind regards,
Matt

Comment