International Humanitarian NGO collected data to allocate the funds to the countries in dire need of Aid. Using the socio-economic and health factors that determine the overall development of nations, this analysis attempts to explain the dependent variable child mortality in countries using the 8 explanatory variables. Child mortality was chosen as the dependent variable due to its critical significance as a key health indicator, capturing the vulnerability of a nation’s youngest population to various socio-economic determinants. Research question is thus how does this set of variables influences child mortality?
Method used is Principal Component Analysis because it describes the variability of given units by a set of correlated variables with a set of new uncorrelated variables, which should contain a larger part of the information of the original given variables. The variables will be standardized to ensure equal contributions from variables with varying scales. In this example, this means the analysis will use different economic, social and health factors in different countries to combine similar explanatory variables into principal components, which should still contain a large part of original information. These principal components will then be used to explain variations in child mortality across 167 countries, providing insights into the key factors influencing child mortality in different nations.
Data source: https://www.kaggle.com/datasets/vipulgohel/clustering-pca-assignment/data
mydata <- read.csv("C:/Users/timea/OneDrive/Namizje/Country-data.csv", header=TRUE)
head(mydata)
## country child_mort exports health imports income inflation
## 1 Afghanistan 90.2 10.0 7.58 44.9 1610 9.44
## 2 Albania 16.6 28.0 6.55 48.6 9930 4.49
## 3 Algeria 27.3 38.4 4.17 31.4 12900 16.10
## 4 Angola 119.0 62.3 2.85 42.9 5900 22.40
## 5 Antigua and Barbuda 10.3 45.5 6.03 58.9 19100 1.44
## 6 Argentina 14.5 18.9 8.10 16.0 18700 20.90
## life_expec total_fer gdpp
## 1 56.2 5.82 553
## 2 76.3 1.65 4090
## 3 76.5 2.89 4460
## 4 60.1 6.16 3530
## 5 76.8 2.13 12200
## 6 75.8 2.37 10300
Unit of observation: one country. Sample size: 167 countries.
Description of dataset:
Country: identificator variable (name) of the country.
Child Mortality (child_mort): Unit: Deaths per 1000 live births
Exports (exports): Unit: Exports of goods and services as a percentage of the Total GDP
Health (health): Unit: Score reflecting overall health in a country
Imports (imports): Unit: Imports of goods and services as a percentage of the Total GDP
Income (income): Unit: Net income per person (currency, e.g. USD)
Inflation (inflation): Unit: Inflation rate (percentage)
Life Expectancy (life_expec): Unit: Years
Total Fertility Rate (total_fer): Unit: Number of children born to each woman
GDP per capita (gdpp): Unit: Gross Domestic Product (GDP) per person (currency, e.g. USD)
library(psych)
mydata_PCA <- mydata[ ,-1]
describe(mydata_PCA)
## vars n mean sd median trimmed mad min max
## child_mort 1 167 38.27 40.33 19.30 31.59 21.94 2.60 2.08e+02
## exports 2 167 41.11 27.41 35.00 37.80 21.20 0.11 2.00e+02
## health 3 167 6.82 2.75 6.32 6.66 2.64 1.81 1.79e+01
## imports 4 167 46.89 24.21 43.30 44.34 21.05 0.07 1.74e+02
## income 5 167 17144.69 19278.07 9960.00 13807.63 11638.41 609.00 1.25e+05
## inflation 6 167 7.78 10.57 5.39 6.27 5.72 -4.21 1.04e+02
## life_expec 7 167 70.56 8.89 73.10 71.33 8.90 32.10 8.28e+01
## total_fer 8 167 2.95 1.51 2.41 2.77 1.22 1.15 7.49e+00
## gdpp 9 167 12964.16 18328.70 4660.00 9146.43 5814.76 231.00 1.05e+05
## range skew kurtosis se
## child_mort 205.40 1.42 1.62 3.12
## exports 199.89 2.40 9.65 2.12
## health 16.09 0.69 0.59 0.21
## imports 173.93 1.87 6.41 1.87
## income 124391.00 2.19 6.67 1491.78
## inflation 108.21 5.06 39.95 0.82
## life_expec 50.70 -0.95 1.03 0.69
## total_fer 6.34 0.95 -0.25 0.12
## gdpp 104769.00 2.18 5.23 1418.32
Explanation of a few estimators of parameters:
Mean value of child mortality is 38.27 deaths per 1000 live births.
Range (difference between the maximum and minimum values - % of GDP) for exports is 199.89.
Range (difference between the maximum and minimum values - % of GDP) for imports is 173.93.
The standard deviation (the average deviation of individual data points from the mean) for income is 19278.07 USD.
Skewness of inflation is 5.06, meaning that distribution of inflation rates is right skewed, which indicates that some countries have extremely high inflation rates.
fit <- lm(child_mort ~ exports + health + imports + income + inflation + life_expec + total_fer + gdpp, data=mydata)
library(car)
## Warning: package 'car' was built under R version 4.3.2
## Loading required package: carData
## Warning: package 'carData' was built under R version 4.3.2
##
## Attaching package: 'car'
## The following object is masked from 'package:psych':
##
## logit
vif(fit)
## exports health imports income inflation life_expec total_fer
## 4.940172 1.765099 3.722113 7.549248 1.281269 3.055333 2.632814
## gdpp
## 7.303832
mean(vif(fit))
## [1] 4.031235
Based on the multicolinearity results, health and inflation variables will be excluded from further analysis.
R <- cor(mydata_PCA)
library(psych)
cortest.bartlett(R, n=167)
## $chisq
## [1] 1169.737
##
## $p.value
## [1] 3.136862e-222
##
## $df
## [1] 36
det (R)
## [1] 0.0007368109
Bartlett’s test of sphericity reveals a significant Chi-square value of 116.737 with a p-value less than 0.05. This indicates that the variables are correlated.
Determinant of the Correlation matrix is close to zero, indicating high multicollinearity among the variables.
library(psych)
KMO(R)
## Kaiser-Meyer-Olkin factor adequacy
## Call: KMO(r = R)
## Overall MSA = 0.68
## MSA for each item =
## child_mort exports health imports income inflation life_expec
## 0.73 0.57 0.36 0.41 0.69 0.74 0.80
## total_fer gdpp
## 0.86 0.66
Overall MSA (KMO value) is 0.68, which is more than 0.5 and indicates a moderate level of sampling adequacy. Individual KMO values for each variable suggest that child mortality, income, inflation, life expectancy, total fertility have relatively higher sampling adequacy compared to exports, health, imports, and gdpp.
mydata_PCA <- mydata[, c("exports", "imports", "income", "life_expec", "total_fer", "gdpp")]
options(repos = c(CRAN = "https://cran.rstudio.com"))
install.packages("pastecs")
## Installing package into 'C:/Users/timea/AppData/Local/R/win-library/4.3'
## (as 'lib' is unspecified)
## package 'pastecs' successfully unpacked and MD5 sums checked
##
## The downloaded binary packages are in
## C:\Users\timea\AppData\Local\Temp\RtmpAdbiTx\downloaded_packages
library(pastecs)
## Warning: package 'pastecs' was built under R version 4.3.2
round(stat.desc(mydata_PCA, basic=FALSE), 2)
## exports imports income life_expec total_fer gdpp
## median 35.00 43.30 9960.00 73.10 2.41 4660.00
## mean 41.11 46.89 17144.69 70.56 2.95 12964.16
## SE.mean 2.12 1.87 1491.78 0.69 0.12 1418.32
## CI.mean.0.95 4.19 3.70 2945.31 1.36 0.23 2800.27
## var 751.42 586.10 371643894.16 79.09 2.29 335941419.96
## std.dev 27.41 24.21 19278.07 8.89 1.51 18328.70
## coef.var 0.67 0.52 1.12 0.13 0.51 1.41
R<- cor(mydata_PCA)
round(R,3)
## exports imports income life_expec total_fer gdpp
## exports 1.000 0.737 0.517 0.316 -0.320 0.419
## imports 0.737 1.000 0.122 0.054 -0.159 0.115
## income 0.517 0.122 1.000 0.612 -0.502 0.896
## life_expec 0.316 0.054 0.612 1.000 -0.761 0.600
## total_fer -0.320 -0.159 -0.502 -0.761 1.000 -0.455
## gdpp 0.419 0.115 0.896 0.600 -0.455 1.000
install.packages(c("factoextra", "ggplot2"))
## Installing packages into 'C:/Users/timea/AppData/Local/R/win-library/4.3'
## (as 'lib' is unspecified)
## package 'factoextra' successfully unpacked and MD5 sums checked
## package 'ggplot2' successfully unpacked and MD5 sums checked
##
## The downloaded binary packages are in
## C:\Users\timea\AppData\Local\Temp\RtmpAdbiTx\downloaded_packages
library(factoextra)
## Warning: package 'factoextra' was built under R version 4.3.2
## Loading required package: ggplot2
## Warning: package 'ggplot2' was built under R version 4.3.2
##
## Attaching package: 'ggplot2'
## The following objects are masked from 'package:psych':
##
## %+%, alpha
## Welcome! Want to learn more? See two factoextra-related books at https://goo.gl/ve3WBa
library(ggplot2)
pca_result <- prcomp(mydata_PCA, scale. = TRUE)
components <- pca_result$x
fviz_screeplot(pca_result, addlabels = TRUE, ylim = c(0, 50))
fviz_eig(pca_result, choice = "eigenvalue", main = "Scree plot", ylab = "Eigenvalue", xlab = "Principal component", addlabels = TRUE)
fa.parallel(mydata_PCA, sim=FALSE, fa="pc")
## Parallel analysis suggests that the number of factors = NA and the number of components = 2
library(FactoMineR)
components <- PCA(mydata_PCA, scale.unit=TRUE, graph=FALSE)
library(factoextra)
get_eigenvalue (components)
## eigenvalue variance.percent cumulative.variance.percent
## Dim.1 3.30105596 55.017599 55.01760
## Dim.2 1.43517097 23.919516 78.93712
## Dim.3 0.76680735 12.780123 91.71724
## Dim.4 0.21971654 3.661942 95.37918
## Dim.5 0.20059621 3.343270 98.72245
## Dim.6 0.07665297 1.277550 100.00000
The eigenvalues suggest that the first two principal components explain a substantial amount of variance. Dim.1 has an eigenvalue of approximately 3.3, explaining 55.02% of the variance. Dim.2 has an eigenvalue of approximately 1.4, explaining an additional 23.92% of the variance. Together, Dim.1 and Dim.2 explain a cumulative variance of approximately 78.94%.
library(FactoMineR)
components <- PCA(mydata_PCA, ncp = 2, scale.unit=TRUE, graph=TRUE)
print(components$var$cor)
## Dim.1 Dim.2
## exports 0.6866712 0.6518430
## imports 0.3796663 0.8731863
## income 0.8789280 -0.1703075
## life_expec 0.8036077 -0.3487109
## total_fer -0.7458281 0.2289130
## gdpp 0.8431090 -0.2116888
print(components$var$contrib)
## Dim.1 Dim.2
## exports 14.283835 29.606181
## imports 4.366679 53.126380
## income 23.402038 2.020990
## life_expec 19.562992 8.472808
## total_fer 16.850960 3.651214
## gdpp 21.533495 3.122426
In Dim.1, positive correlations are observed with variables such as income (0.88), life expectancy (0.80), exports (0.69), and gdpp (0.84). These variables move in the same direction in the new principal component space. In Dim.2, there is a strong positive correlation between imports and exports (0.87), indicating that these two variables move together in the new principal component space. Additionally, there are negative correlations with income (-0.17) and life expectancy (-0.35).
In Dim.1, the variables with the highest contributions are income (23.40%), gdpp (21.53%), and life_expec (19.56%). These variables play a significant role in explaining the variability in Dim.1. In Dim.2, the variables with the highest contributions are imports (53.13%) and exports (29.61%). These two variables are crucial in explaining the variability in Dim.2, while income and gdpp contribute much less.
Dim.1 captures socio-economic factors like income, life expectancy, exports, and gdpp. Dim.2 is heavily influenced by trade-related variables (imports and exports), with a negative influence from income and life expectancy.
pca_result <- prcomp(mydata_PCA, scale. = TRUE)
components <- pca_result$x
head(components)
## PC1 PC2 PC3 PC4 PC5 PC6
## [1,] -2.6429018 -0.3891815 1.0671138 0.17780515 0.4971051 -0.2318195
## [2,] 0.0659554 0.4218216 -1.2286369 0.07385394 0.1938192 -0.1601500
## [3,] -0.1815177 0.6087261 -0.4971194 -0.66497242 -0.1935745 -0.0295882
## [4,] -1.6542920 -1.2220271 1.3644881 -0.87644762 -0.3998317 0.3069731
## [5,] 0.7262842 -0.1340598 -0.6539777 -0.12080155 0.2241861 -0.1753089
## [6,] -0.1837081 1.6012373 -0.3431349 -0.20231024 -0.2015336 -0.0927622
head(components[103, ])
## PC1 PC2 PC3 PC4 PC5 PC6
## 0.03990344 -0.93686141 -1.48590222 0.77390574 0.32080505 -0.11003725
mydata_PCA_std <- scale(mydata_PCA)
mydata_PCA_std[103, ]
## exports imports income life_expec total_fer gdpp
## -0.06964013 1.30567211 -0.68651531 -0.09621861 -1.10841021 -0.61838279
An exaple of more detailed information about a country number 103 - Moldova.
pca_result <- prcomp(mydata_PCA, scale. = TRUE)
components <- pca_result$x
mydata$PC1 <- components[, 1]
mydata$PC2 <- components[, 2]
head(mydata)
## country child_mort exports health imports income inflation
## 1 Afghanistan 90.2 10.0 7.58 44.9 1610 9.44
## 2 Albania 16.6 28.0 6.55 48.6 9930 4.49
## 3 Algeria 27.3 38.4 4.17 31.4 12900 16.10
## 4 Angola 119.0 62.3 2.85 42.9 5900 22.40
## 5 Antigua and Barbuda 10.3 45.5 6.03 58.9 19100 1.44
## 6 Argentina 14.5 18.9 8.10 16.0 18700 20.90
## life_expec total_fer gdpp PC1 PC2
## 1 56.2 5.82 553 -2.6429018 -0.3891815
## 2 76.3 1.65 4090 0.0659554 0.4218216
## 3 76.5 2.89 4460 -0.1815177 0.6087261
## 4 60.1 6.16 3530 -1.6542920 -1.2220271
## 5 76.8 2.13 12200 0.7262842 -0.1340598
## 6 75.8 2.37 10300 -0.1837081 1.6012373
head(mydata, 3)
## country child_mort exports health imports income inflation life_expec
## 1 Afghanistan 90.2 10.0 7.58 44.9 1610 9.44 56.2
## 2 Albania 16.6 28.0 6.55 48.6 9930 4.49 76.3
## 3 Algeria 27.3 38.4 4.17 31.4 12900 16.10 76.5
## total_fer gdpp PC1 PC2
## 1 5.82 553 -2.6429018 -0.3891815
## 2 1.65 4090 0.0659554 0.4218216
## 3 2.89 4460 -0.1815177 0.6087261
cor(x = mydata$PC1, y = mydata$PC2)
## [1] -8.158382e-16
fit <- lm(child_mort ~ PC1 + PC2, data=mydata)
library(car)
vif(fit)
## PC1 PC2
## 1 1
mean(vif(fit))
## [1] 1
mydata$Stdresid <- rstandard(fit)
mydata$StdFitted <- scale(fit$fitted.values)
library(ggplot2)
library(ggplot2)
ggplot(mydata, aes(x = Stdresid)) +
theme_bw() +
geom_histogram(binwidth = 0.2, fill = "blue", color = "black", alpha = 0.7) +
labs(title = "Histogram of Standardized Residuals", x = "Standardized Residuals", y = "Frequency")
Histogram of standardised residuals shows some outliers.
shapiro.test(mydata$Stdresid)
##
## Shapiro-Wilk normality test
##
## data: mydata$Stdresid
## W = 0.90348, p-value = 5.194e-09
The standardised residuals are unlikely to follow a normal distribution.
library(ggplot2)
ggplot(mydata, aes(y = Stdresid, x = StdFitted)) +
theme_bw() +
geom_point() +
ylab("Standardized residuals") +
xlab("Standardized fitted values")
install.packages("olsrr")
## Installing package into 'C:/Users/timea/AppData/Local/R/win-library/4.3'
## (as 'lib' is unspecified)
## package 'olsrr' successfully unpacked and MD5 sums checked
##
## The downloaded binary packages are in
## C:\Users\timea\AppData\Local\Temp\RtmpAdbiTx\downloaded_packages
library(olsrr)
## Warning: package 'olsrr' was built under R version 4.3.2
##
## Attaching package: 'olsrr'
## The following object is masked from 'package:datasets':
##
## rivers
ols_test_breusch_pagan(fit)
##
## Breusch Pagan Test for Heteroskedasticity
## -----------------------------------------
## Ho: the variance is constant
## Ha: the variance is not constant
##
## Data
## --------------------------------------
## Response : child_mort
## Variables: fitted values of child_mort
##
## Test Summary
## ------------------------------
## DF = 1
## Chi2 = 6.908283
## Prob > Chi2 = 0.008579732
Based on the Breusch-Pagan test, there is evidence to suggest that there is heteroskedasticity in the residuals.
names(mydata)
## [1] "country" "child_mort" "exports" "health" "imports"
## [6] "income" "inflation" "life_expec" "total_fer" "gdpp"
## [11] "PC1" "PC2" "Stdresid" "StdFitted"
head(mydata[order(mydata$Stdresid), c("country", "Stdresid")], 3)
## country Stdresid
## 137 Solomon Islands -1.830153
## 152 Tonga -1.671277
## 128 Samoa -1.556014
mydata$CooksD <- cooks.distance(fit)
head(mydata[order(-mydata$CooksD), c("country", "CooksD")])
## country CooksD
## 92 Luxembourg 0.52800614
## 124 Qatar 0.21605945
## 67 Haiti 0.21552930
## 134 Singapore 0.12423867
## 133 Sierra Leone 0.06204918
## 115 Norway 0.05814198
install.packages("dplyr")
## Installing package into 'C:/Users/timea/AppData/Local/R/win-library/4.3'
## (as 'lib' is unspecified)
## package 'dplyr' successfully unpacked and MD5 sums checked
## Warning: cannot remove prior installation of package 'dplyr'
## Warning in file.copy(savedcopy, lib, recursive = TRUE): problem copying
## C:\Users\timea\AppData\Local\R\win-library\4.3\00LOCK\dplyr\libs\x64\dplyr.dll
## to C:\Users\timea\AppData\Local\R\win-library\4.3\dplyr\libs\x64\dplyr.dll:
## Permission denied
## Warning: restored 'dplyr'
##
## The downloaded binary packages are in
## C:\Users\timea\AppData\Local\Temp\RtmpAdbiTx\downloaded_packages
library(dplyr)
## Warning: package 'dplyr' was built under R version 4.3.2
##
## Attaching package: 'dplyr'
## The following objects are masked from 'package:pastecs':
##
## first, last
## The following object is masked from 'package:car':
##
## recode
## The following objects are masked from 'package:stats':
##
## filter, lag
## The following objects are masked from 'package:base':
##
## intersect, setdiff, setequal, union
mydata %>% filter(!country %in% c("Luxembourg"))
## country child_mort exports health imports income
## 1 Afghanistan 90.2 10.000 7.58 44.9000 1610
## 2 Albania 16.6 28.000 6.55 48.6000 9930
## 3 Algeria 27.3 38.400 4.17 31.4000 12900
## 4 Angola 119.0 62.300 2.85 42.9000 5900
## 5 Antigua and Barbuda 10.3 45.500 6.03 58.9000 19100
## 6 Argentina 14.5 18.900 8.10 16.0000 18700
## 7 Armenia 18.1 20.800 4.40 45.3000 6700
## 8 Australia 4.8 19.800 8.73 20.9000 41400
## 9 Austria 4.3 51.300 11.00 47.8000 43200
## 10 Azerbaijan 39.2 54.300 5.88 20.7000 16000
## 11 Bahamas 13.8 35.000 7.89 43.7000 22900
## 12 Bahrain 8.6 69.500 4.97 50.9000 41100
## 13 Bangladesh 49.4 16.000 3.52 21.8000 2440
## 14 Barbados 14.2 39.500 7.97 48.7000 15300
## 15 Belarus 5.5 51.400 5.61 64.5000 16200
## 16 Belgium 4.5 76.400 10.70 74.7000 41100
## 17 Belize 18.8 58.200 5.20 57.5000 7880
## 18 Benin 111.0 23.800 4.10 37.2000 1820
## 19 Bhutan 42.7 42.500 5.20 70.7000 6420
## 20 Bolivia 46.6 41.200 4.84 34.3000 5410
## 21 Bosnia and Herzegovina 6.9 29.700 11.10 51.3000 9720
## 22 Botswana 52.5 43.600 8.30 51.3000 13300
## 23 Brazil 19.8 10.700 9.01 11.8000 14500
## 24 Brunei 10.5 67.400 2.84 28.0000 80600
## 25 Bulgaria 10.8 50.200 6.87 53.0000 15300
## 26 Burkina Faso 116.0 19.200 6.74 29.6000 1430
## 27 Burundi 93.6 8.920 11.60 39.2000 764
## 28 Cambodia 44.4 54.100 5.68 59.5000 2520
## 29 Cameroon 108.0 22.200 5.13 27.0000 2660
## 30 Canada 5.6 29.100 11.30 31.0000 40700
## 31 Cape Verde 26.5 32.700 4.09 61.8000 5830
## 32 Central African Republic 149.0 11.800 3.98 26.5000 888
## 33 Chad 150.0 36.800 4.53 43.5000 1930
## 34 Chile 8.7 37.700 7.96 31.3000 19400
## 35 China 15.7 26.300 5.07 22.6000 9530
## 36 Colombia 18.6 15.900 7.59 17.8000 10900
## 37 Comoros 88.2 16.500 4.51 51.7000 1410
## 38 Congo, Dem. Rep. 116.0 41.100 7.91 49.6000 609
## 39 Congo, Rep. 63.9 85.100 2.46 54.7000 5190
## 40 Costa Rica 10.2 33.200 10.90 35.0000 13000
## 41 Cote d'Ivoire 111.0 50.600 5.30 43.3000 2690
## 42 Croatia 5.5 37.600 7.76 38.1000 20100
## 43 Cyprus 3.6 50.200 5.97 57.5000 33900
## 44 Czech Republic 3.4 66.000 7.88 62.9000 28300
## 45 Denmark 4.1 50.500 11.40 43.6000 44000
## 46 Dominican Republic 34.4 22.700 6.22 33.3000 11100
## 47 Ecuador 25.1 27.900 8.06 32.4000 9350
## 48 Egypt 29.1 21.300 4.66 26.6000 9860
## 49 El Salvador 19.2 26.900 6.91 46.6000 7300
## 50 Equatorial Guinea 111.0 85.800 4.48 58.9000 33700
## 51 Eritrea 55.2 4.790 2.66 23.3000 1420
## 52 Estonia 4.5 75.100 6.03 68.7000 22700
## 53 Fiji 24.1 57.800 4.86 63.9000 7350
## 54 Finland 3.0 38.700 8.95 37.4000 39800
## 55 France 4.2 26.800 11.90 28.1000 36900
## 56 Gabon 63.7 57.700 3.50 18.9000 15400
## 57 Gambia 80.3 23.800 5.69 42.7000 1660
## 58 Georgia 16.5 35.000 10.10 52.8000 6730
## 59 Germany 4.2 42.300 11.60 37.1000 40400
## 60 Ghana 74.7 29.500 5.22 45.9000 3060
## 61 Greece 3.9 22.100 10.30 30.7000 28700
## 62 Grenada 14.6 23.800 5.86 49.2000 11200
## 63 Guatemala 35.4 25.800 6.85 36.3000 6710
## 64 Guinea 109.0 30.300 4.93 43.2000 1190
## 65 Guinea-Bissau 114.0 14.900 8.50 35.2000 1390
## 66 Guyana 37.6 51.400 5.38 79.1000 5840
## 67 Haiti 208.0 15.300 6.91 64.7000 1500
## 68 Hungary 6.0 81.800 7.33 76.5000 22300
## 69 Iceland 2.6 53.400 9.40 43.3000 38800
## 70 India 58.8 22.600 4.05 27.1000 4410
## 71 Indonesia 33.3 24.300 2.61 22.4000 8430
## 72 Iran 19.3 24.400 5.60 19.4000 17400
## 73 Iraq 36.9 39.400 8.41 34.1000 12700
## 74 Ireland 4.2 103.000 9.19 86.5000 45700
## 75 Israel 4.6 35.000 7.63 32.9000 29600
## 76 Italy 4.0 25.200 9.53 27.2000 36200
## 77 Jamaica 18.1 31.300 4.81 49.6000 8000
## 78 Japan 3.2 15.000 9.49 13.6000 35800
## 79 Jordan 21.1 48.300 8.04 69.0000 9470
## 80 Kazakhstan 21.5 44.200 4.29 29.9000 20100
## 81 Kenya 62.2 20.700 4.75 33.6000 2480
## 82 Kiribati 62.7 13.300 11.30 79.9000 1730
## 83 Kuwait 10.8 66.700 2.63 30.4000 75200
## 84 Kyrgyz Republic 29.6 51.600 6.18 81.7000 2790
## 85 Lao 78.9 35.400 4.47 49.3000 3980
## 86 Latvia 7.8 53.700 6.68 55.1000 18300
## 87 Lebanon 10.3 35.800 7.03 60.2000 16300
## 88 Lesotho 99.7 39.400 11.10 101.0000 2380
## 89 Liberia 89.3 19.100 11.80 92.6000 700
## 90 Libya 16.6 65.600 3.88 42.1000 29600
## 91 Lithuania 6.1 65.300 7.04 67.2000 21100
## 92 Macedonia, FYR 10.4 39.800 7.09 58.1000 11400
## 93 Madagascar 62.2 25.000 3.77 43.0000 1390
## 94 Malawi 90.5 22.800 6.59 34.9000 1030
## 95 Malaysia 7.9 86.900 4.39 71.0000 21100
## 96 Maldives 13.2 77.600 6.33 65.4000 10500
## 97 Mali 137.0 22.800 4.98 35.1000 1870
## 98 Malta 6.8 153.000 8.65 154.0000 28300
## 99 Mauritania 97.4 50.700 4.41 61.2000 3320
## 100 Mauritius 15.0 51.200 6.00 62.2000 15900
## 101 Micronesia, Fed. Sts. 40.0 23.500 14.20 81.0000 3340
## 102 Moldova 17.2 39.200 11.70 78.5000 3910
## 103 Mongolia 26.1 46.700 5.44 56.7000 7710
## 104 Montenegro 6.8 37.000 9.11 62.7000 14000
## 105 Morocco 33.5 32.200 5.20 43.0000 6440
## 106 Mozambique 101.0 31.500 5.21 46.2000 918
## 107 Myanmar 64.4 0.109 1.97 0.0659 3720
## 108 Namibia 56.0 47.800 6.78 60.7000 8460
## 109 Nepal 47.0 9.580 5.25 36.4000 1990
## 110 Netherlands 4.5 72.000 11.90 63.6000 45500
## 111 New Zealand 6.2 30.300 10.10 28.0000 32300
## 112 Niger 123.0 22.200 5.16 49.1000 814
## 113 Nigeria 130.0 25.300 5.07 17.4000 5150
## 114 Norway 3.2 39.700 9.48 28.5000 62300
## 115 Oman 11.7 65.700 2.77 41.2000 45300
## 116 Pakistan 92.1 13.500 2.20 19.4000 4280
## 117 Panama 19.7 70.000 8.10 78.2000 15400
## 118 Paraguay 24.1 55.100 5.87 51.5000 7290
## 119 Peru 20.3 27.800 5.08 23.8000 9960
## 120 Philippines 31.9 34.800 3.61 36.6000 5600
## 121 Poland 6.0 40.100 7.46 42.1000 21800
## 122 Portugal 3.9 29.900 11.00 37.4000 27200
## 123 Qatar 9.0 62.300 1.81 23.8000 125000
## 124 Romania 11.5 32.600 5.58 38.8000 17800
## 125 Russia 10.0 29.200 5.08 21.1000 23100
## 126 Rwanda 63.6 12.000 10.50 30.0000 1350
## 127 Samoa 18.9 29.200 6.47 53.1000 5400
## 128 Saudi Arabia 15.7 49.600 4.29 33.0000 45400
## 129 Senegal 66.8 24.900 5.66 40.3000 2180
## 130 Serbia 7.6 32.900 10.40 47.9000 12700
## 131 Seychelles 14.4 93.800 3.40 108.0000 20400
## 132 Sierra Leone 160.0 16.800 13.10 34.5000 1220
## 133 Singapore 2.8 200.000 3.96 174.0000 72100
## 134 Slovak Republic 7.0 76.300 8.79 77.8000 25200
## 135 Slovenia 3.2 64.300 9.41 62.9000 28700
## 136 Solomon Islands 28.1 49.300 8.55 81.2000 1780
## 137 South Africa 53.7 28.600 8.94 27.4000 12000
## 138 South Korea 4.1 49.400 6.93 46.2000 30400
## 139 Spain 3.8 25.500 9.54 26.8000 32500
## 140 Sri Lanka 11.2 19.600 2.94 26.8000 8560
## 141 St. Vincent and the Grenadines 20.7 26.900 4.47 57.1000 9920
## 142 Sudan 76.7 19.700 6.32 17.2000 3370
## 143 Suriname 24.1 52.500 7.01 38.4000 14200
## 144 Sweden 3.0 46.200 9.63 40.7000 42900
## 145 Switzerland 4.5 64.000 11.50 53.3000 55500
## 146 Tajikistan 52.4 14.900 5.98 58.6000 2110
## 147 Tanzania 71.9 18.700 6.01 29.1000 2090
## 148 Thailand 14.9 66.500 3.88 60.8000 13500
## 149 Timor-Leste 62.6 2.200 9.12 27.8000 1850
## 150 Togo 90.3 40.200 7.65 57.3000 1210
## 151 Tonga 17.4 12.400 5.07 60.3000 4980
## 152 Tunisia 17.4 50.500 6.21 55.3000 10400
## 153 Turkey 19.1 20.400 6.74 25.5000 18000
## 154 Turkmenistan 62.0 76.300 2.50 44.5000 9940
## 155 Uganda 81.0 17.100 9.01 28.6000 1540
## 156 Ukraine 11.7 47.100 7.72 51.1000 7820
## 157 United Arab Emirates 8.6 77.700 3.66 63.6000 57600
## 158 United Kingdom 5.2 28.200 9.64 30.8000 36200
## 159 United States 7.3 12.400 17.90 15.8000 49400
## 160 Uruguay 10.6 26.300 8.35 25.4000 17100
## 161 Uzbekistan 36.3 31.700 5.81 28.5000 4240
## 162 Vanuatu 29.2 46.600 5.25 52.7000 2950
## 163 Venezuela 17.1 28.500 4.91 17.6000 16500
## 164 Vietnam 23.3 72.000 6.84 80.2000 4490
## 165 Yemen 56.3 30.000 5.18 34.4000 4480
## 166 Zambia 83.1 37.000 5.89 30.9000 3280
## inflation life_expec total_fer gdpp PC1 PC2 Stdresid
## 1 9.440 56.2 5.82 553 -2.642901774 -0.389181469 0.18154042
## 2 4.490 76.3 1.65 4090 0.065955401 0.421821564 -0.68791877
## 3 16.100 76.5 2.89 4460 -0.181517712 0.608726101 -0.35221994
## 4 22.400 60.1 6.16 3530 -1.654291982 -1.222027126 1.73868979
## 5 1.440 76.8 2.13 12200 0.726284190 -0.134059784 -0.69608079
## 6 20.900 75.8 2.37 10300 -0.183708118 1.601237273 -0.52094490
## 7 7.770 73.3 1.69 3220 -0.324927734 0.528643588 -0.85461365
## 8 1.160 82.0 1.93 51900 1.921507409 2.262771503 0.76870738
## 9 0.873 80.5 1.44 46900 2.564845214 0.805454756 0.65470157
## 10 13.800 69.1 1.92 5840 -0.046937234 0.531655737 0.19782623
## 11 -0.393 73.8 1.86 28000 0.869703316 0.648221790 -0.17339664
## 12 7.440 76.0 2.16 20700 1.707466794 -0.155383015 -0.10508304
## 13 7.140 70.4 2.33 758 -1.080954803 1.100584379 0.11569072
## 14 0.321 76.7 1.78 16000 0.646303537 0.341646685 -0.41969464
## 15 15.100 70.4 1.49 6030 0.482225235 -0.629335542 -1.23771510
## 16 1.880 80.0 1.86 44400 2.888349812 -0.611614097 0.37043537
## 17 1.140 71.4 2.71 4340 -0.017091173 -0.752470646 -1.07909179
## 18 0.885 61.8 5.36 758 -2.105388912 -0.186401106 1.47464139
## 19 5.990 72.1 2.38 2180 -0.086641550 -0.805271193 -0.16872963
## 20 8.780 71.6 3.20 1980 -0.696382228 0.187184578 -0.06659206
## 21 1.400 76.8 1.31 4610 0.237657473 0.369534087 -0.98594045
## 22 8.920 57.1 2.88 6350 -0.842312474 -0.706166055 -0.24758731
## 23 8.410 74.2 1.80 11200 -0.340637218 1.887735210 -0.30762798
## 24 16.700 77.1 1.84 35300 2.983169056 1.084186167 1.30219257
## 25 1.110 73.9 1.57 6840 0.516719829 -0.153653088 -0.82528945
## 26 6.810 57.9 5.87 575 -2.581089216 -0.062943834 1.40189952
## 27 12.300 57.7 6.26 231 -2.781082789 -0.211918579 0.29105665
## 28 3.120 66.1 2.88 786 -0.590529971 -1.000022336 -0.51362684
## 29 1.910 57.3 5.11 1310 -2.336452536 0.048232693 1.27977289
## 30 2.870 81.3 1.63 47400 2.051947460 1.740499423 0.69806262
## 31 0.505 72.5 2.67 3310 -0.343517936 -0.359762176 -0.84441738
## 32 2.010 47.5 5.21 446 -3.065015406 -0.085059877 2.42406990
## 33 6.390 56.5 6.59 897 -2.462619987 -0.960694961 2.55755095
## 34 8.960 79.1 1.88 12900 0.587943637 0.967517561 -0.45907798
## 35 6.940 74.6 1.59 4560 -0.248320739 1.191860580 -0.66273959
## 36 3.860 76.4 2.01 6250 -0.380341148 1.575107219 -0.49669129
## 37 3.870 65.9 4.75 769 -1.721567026 -0.269776551 0.77120484
## 38 20.800 57.5 6.54 334 -2.334791467 -1.205827985 1.15827180
## 39 20.700 60.4 4.95 2740 -0.932877720 -1.880162884 -0.26897158
## 40 6.570 80.4 1.92 8200 0.332053255 0.890438522 -0.59986188
## 41 5.390 56.3 5.27 1220 -1.898843766 -1.059811277 1.30163014
## 42 0.821 76.3 1.55 13500 0.628241678 0.725728370 -0.64936502
## 43 2.010 79.9 1.42 30800 1.968000555 0.294339186 0.03073307
## 44 -1.430 77.5 1.51 19800 1.669663253 -0.419120310 -0.43920305
## 45 3.220 79.5 1.87 58000 2.652330131 0.973689976 0.76841885
## 46 5.440 74.6 2.60 5450 -0.417542490 0.833847130 -0.14183308
## 47 7.470 76.7 2.66 4660 -0.329357965 0.798366050 -0.47470713
## 48 10.100 70.5 3.19 2600 -0.961846893 0.818065411 -0.73590047
## 49 2.650 74.1 2.27 2990 -0.337857231 0.323605140 -0.89214441
## 50 24.900 60.9 5.21 17100 0.146373353 -1.688276939 2.47502462
## 51 11.600 61.7 4.61 482 -2.306091771 0.695209198 -0.63195846
## 52 1.740 76.0 1.72 14600 1.441468083 -0.941402878 -0.73948774
## 53 4.230 65.3 2.67 3650 -0.290669322 -1.142385416 -1.19166438
## 54 0.351 80.0 1.87 46200 2.056848097 1.266209715 0.42010626
## 55 1.050 81.4 2.03 40600 1.624196774 1.732667986 0.34267846
## 56 16.600 62.9 4.08 8750 -0.851046309 0.066418644 0.48301495
## 57 4.300 65.5 5.71 562 -1.977780705 -0.278132952 0.27004226
## 58 8.550 72.8 1.92 2960 -0.157475193 -0.026704363 -1.00560630
## 59 0.758 80.1 1.39 41800 2.142682807 1.229648255 0.51511501
## 60 16.600 62.2 4.27 1310 -1.591153545 -0.396333892 0.26171259
## 61 0.673 80.4 1.48 26900 1.128621646 1.591825769 -0.06116599
## 62 0.480 71.3 2.24 7370 -0.280521859 0.289987256 -1.05299347
## 63 5.140 71.3 3.38 2830 -0.901032656 0.417895332 -0.58057598
## 64 16.100 58.0 5.34 648 -2.166144922 -0.623624143 1.19399720
## 65 2.970 55.6 5.05 547 -2.485787602 -0.118533560 1.36428073
## 66 5.730 65.5 2.65 3040 -0.285674100 -1.480920452 -0.75940677
## 67 5.450 32.1 3.33 662 -2.922339657 -1.564782368 4.43329748
## 68 2.330 74.5 1.25 13100 1.605999619 -1.316412126 -0.70290207
## 69 5.470 82.0 2.20 41900 2.186474511 0.771768617 0.31245225
## 70 8.980 66.2 2.60 1350 -1.161888833 0.658695409 0.28519666
## 71 15.300 69.9 2.48 3110 -0.817024349 0.949317317 -0.41790165
## 72 15.900 74.5 1.76 6530 -0.105846031 1.378214121 -0.35096529
## 73 16.600 67.2 4.56 4500 -1.063807403 -0.008689734 -0.78414294
## 74 -3.220 80.4 2.05 48700 3.549616181 -1.430387239 0.51832443
## 75 1.770 81.4 3.03 30600 1.071160614 1.148925330 -0.23189930
## 76 0.319 81.7 1.46 35800 1.624761033 1.821851623 0.36752236
## 77 9.810 74.7 2.17 4680 -0.133988398 0.199661867 -0.84273687
## 78 -1.900 82.8 1.39 44500 1.650657820 2.559537250 0.62529775
## 79 8.430 75.8 3.66 3680 -0.069905640 -0.872724451 -1.06494156
## 80 19.500 68.4 2.60 9070 -0.141324437 0.407783018 -0.63403682
## 81 2.090 62.8 4.37 967 -1.839164019 0.148090670 -0.22253259
## 82 1.520 60.7 3.84 1490 -1.507856262 -1.101302973 -0.42834768
## 83 11.200 78.2 2.21 38500 2.894123002 1.006155256 1.22382044
## 84 10.000 68.5 3.10 880 -0.364515242 -1.565091886 -1.17266781
## 85 9.200 63.8 3.15 1140 -1.078400527 -0.416926181 0.77525873
## 86 -0.812 73.1 1.36 11300 0.788456300 -0.220908266 -0.78729469
## 87 0.238 79.8 1.61 8860 0.739153448 0.130321420 -0.59194548
## 88 4.150 46.5 3.30 1170 -1.517478338 -2.649543281 0.52835865
## 89 5.470 60.8 5.02 327 -1.688558627 -1.763266500 0.30062778
## 90 14.200 76.1 2.41 12100 1.008611783 -0.009025754 -0.20141591
## 91 2.380 73.2 1.50 12000 1.107826718 -0.802459283 -0.85053836
## 92 2.040 74.0 1.47 4540 0.293345767 -0.135801912 -0.98713331
## 93 8.790 60.8 4.60 413 -1.901957129 -0.328140044 -0.43785249
## 94 12.100 53.1 5.31 459 -2.585557987 -0.384460801 0.23482367
## 95 7.270 74.5 2.15 9070 1.252652228 -1.413357992 -0.90172663
## 96 2.880 77.9 2.23 7100 0.907630156 -1.056130626 -0.78879360
## 97 4.370 59.5 6.55 708 -2.574387704 -0.328925750 2.17300873
## 98 3.830 80.3 1.36 21100 3.868343064 -4.765666065 -0.39458575
## 99 18.900 68.2 4.98 1200 -1.057175731 -1.170157467 1.27725903
## 100 1.130 73.4 1.57 8000 0.629474715 -0.451244656 -0.68466586
## 101 3.800 65.4 3.46 2860 -0.945848534 -1.110006027 -0.97691689
## 102 11.100 69.7 1.27 1630 0.039903441 -0.936861408 -1.17297936
## 103 39.200 66.2 2.64 2650 -0.469244048 -0.679026757 -1.06238910
## 104 1.600 76.4 1.77 6680 0.451884472 -0.138223769 -1.02715388
## 105 0.976 73.5 2.58 2830 -0.435390453 0.260136020 -0.39748455
## 106 7.640 54.5 5.56 419 -2.370056548 -0.884305009 0.63276712
## 107 7.040 66.8 2.41 988 -1.650444299 1.954089865 0.65460975
## 108 3.560 58.6 3.60 5190 -0.974725737 -1.161198723 -0.35984339
## 109 15.100 68.3 2.61 592 -1.239312967 0.679460157 -0.24294656
## 110 0.848 80.7 1.79 50300 3.045457884 -0.069013496 0.67568562
## 111 3.730 80.9 2.17 33700 1.318635908 1.531725450 0.14175617
## 112 2.550 58.8 7.49 348 -2.787139329 -0.891332808 1.25114874
## 113 104.000 60.5 5.84 2330 -2.327064516 0.316518326 2.28647295
## 114 5.950 81.0 1.95 87800 3.639682420 2.103924980 1.84500578
## 115 15.600 76.1 2.90 19300 1.445610157 0.139426495 -0.05031828
## 116 10.900 65.3 3.85 1040 -1.748642397 0.879967106 1.33025138
## 117 2.590 77.8 2.62 8080 0.950372982 -1.297561889 -0.58148750
## 118 6.100 74.1 2.73 3230 -0.025668347 -0.439498346 -0.75473262
## 119 5.710 77.9 2.54 5020 -0.288325049 1.121664014 -0.52690944
## 120 4.220 69.0 3.16 2130 -0.874667560 0.167771437 -0.79565665
## 121 1.660 76.3 1.41 12600 0.755072226 0.577207114 -0.59592998
## 122 0.643 79.8 1.39 22500 1.139519575 1.173522889 -0.20501659
## 123 6.980 79.5 2.07 70300 4.933876033 2.026237290 2.98895689
## 124 3.530 73.7 1.59 8230 0.234049736 0.645984113 -0.70124440
## 125 14.200 69.2 1.57 10700 0.011541883 1.164498845 -0.72844238
## 126 2.610 64.6 4.51 563 -1.977211919 0.458183412 -0.14744783
## 127 1.720 71.5 4.34 3450 -0.976690721 -0.273701258 -1.55601354
## 128 17.200 75.1 2.96 19300 1.089359556 0.666314767 0.06063695
## 129 1.850 64.0 5.06 1000 -1.857538868 -0.186704977 -0.16781234
## 130 5.880 74.7 1.40 5410 0.218615171 0.357972634 -0.97446781
## 131 -4.210 73.4 2.17 10800 1.633254642 -2.691291039 -0.84810017
## 132 17.200 55.0 5.20 399 -2.544161962 -0.176425090 3.19300571
## 133 -0.046 82.7 1.15 46600 6.609992068 -5.626839980 1.15418710
## 134 0.485 75.5 1.43 16600 1.703699325 -1.181239758 -0.54564382
## 135 -0.987 79.5 1.57 23400 1.830606108 -0.289831105 -0.29083554
## 136 6.810 61.7 4.24 1290 -1.062828973 -1.874342905 -1.83015265
## 137 6.350 54.3 2.59 7280 -1.325113427 0.255472221 -0.18045454
## 138 3.160 80.1 1.23 22100 1.612809889 0.571271388 -0.09121888
## 139 0.160 81.9 1.37 30700 1.437829221 1.769392761 0.21149962
## 140 22.800 74.4 2.20 2810 -0.548446901 1.090836672 -1.08821662
## 141 4.440 71.6 2.07 6230 -0.169555797 0.001455743 -0.83221415
## 142 19.600 66.3 4.88 1480 -1.923408312 0.723388554 0.52255527
## 143 7.200 70.3 2.52 8300 -0.004878938 0.008477044 -0.57874347
## 144 0.991 81.5 1.98 52100 2.460676942 1.132937935 0.64931399
## 145 0.317 82.2 1.52 74600 3.860228395 0.791076060 1.55829077
## 146 12.500 69.6 3.51 738 -1.147027588 -0.163272720 -0.26328538
## 147 9.250 59.3 5.43 702 -2.383581060 0.069486862 -0.22601498
## 148 4.080 76.6 1.55 5080 0.858759611 -0.651379051 -0.60521785
## 149 26.500 71.1 6.23 3600 -2.185004148 0.747558433 -0.22606628
## 150 1.180 58.7 4.87 488 -1.749233256 -1.163802371 0.51645545
## 151 3.680 69.9 3.91 3550 -1.117154815 -0.157226389 -1.67127666
## 152 3.820 76.9 2.14 4140 0.344033623 -0.264772493 -0.71342584
## 153 7.010 78.2 2.15 10700 0.090553638 1.390463599 -0.22048968
## 154 2.310 67.9 2.83 4440 -0.032136657 -0.833905545 0.64714043
## 155 10.600 56.8 6.15 595 -2.746041535 -0.061495000 -0.14836363
## 156 13.400 70.4 1.44 2970 0.033078122 -0.225534674 -1.14362063
## 157 12.500 76.5 1.87 35000 2.809737353 -0.387999208 0.56607754
## 158 1.570 80.3 1.92 38900 1.581318065 1.579918862 0.29848439
## 159 1.220 78.7 1.93 48400 1.723471712 2.480443295 0.81636577
## 160 4.910 76.4 2.08 11900 0.108291695 1.231214285 -0.61390889
## 161 16.500 68.8 2.34 1380 -0.828032974 0.552868412 -0.44538823
## 162 2.620 63.0 3.50 2970 -1.008844511 -0.801920096 -1.34936493
## 163 45.900 75.4 2.47 13500 -0.058738201 1.351423223 -0.41857054
## 164 12.100 73.1 1.95 1310 0.497963318 -1.612462465 -0.85844285
## 165 23.600 67.5 4.67 1310 -1.492759965 0.073427890 -0.25429714
## 166 14.000 52.0 5.40 1460 -2.421612713 -0.567017494 -0.02314089
## StdFitted CooksD
## 1 1.4804122908 2.170017e-04
## 2 -0.1503563489 1.070863e-03
## 3 -0.0731995956 3.168370e-04
## 4 1.1959062185 1.768812e-02
## 5 -0.3405003692 1.142807e-03
## 6 -0.3451985260 1.546818e-03
## 7 0.0233579784 1.803566e-03
## 8 -1.6211680718 6.978634e-03
## 9 -1.5544099593 3.022497e-03
## 10 -0.1219209817 9.432106e-05
## 11 -0.6303064687 9.236653e-05
## 12 -0.8444764790 4.248192e-05
## 13 0.2588094190 5.970039e-05
## 14 -0.4298541307 4.282076e-04
## 15 -0.0773830186 4.156961e-03
## 16 -1.3325355669 1.066386e-03
## 17 0.2159593878 3.274320e-03
## 18 1.1453039430 1.045840e-02
## 19 0.2666299105 8.351485e-05
## 20 0.3103428092 1.045021e-05
## 21 -0.2251871392 2.173890e-03
## 22 0.6320197276 1.933931e-04
## 23 -0.3424983549 6.818447e-04
## 24 -1.8484866302 1.578176e-02
## 25 -0.2262140453 1.502485e-03
## 26 1.3585131638 1.211827e-02
## 27 1.5034318111 5.848463e-04
## 28 0.5820566284 9.620782e-04
## 29 1.2007989637 8.854477e-03
## 30 -1.5452193678 4.402269e-03
## 31 0.2775053710 1.614436e-03
## 32 1.6160582254 4.644342e-02
## 33 1.5440132642 4.660840e-02
## 34 -0.5717674619 7.489104e-04
## 35 -0.1989647192 1.787714e-03
## 36 -0.2358327076 1.393724e-03
## 37 0.9688063450 2.347446e-03
## 38 1.5450508569 1.007801e-02
## 39 1.0021610448 5.529193e-04
## 40 -0.4175891509 1.152523e-03
## 41 1.2783392626 9.931889e-03
## 42 -0.5261673093 1.264925e-03
## 43 -1.1036182554 4.282490e-06
## 44 -0.7522529391 7.686383e-04
## 45 -1.6461670608 4.593378e-03
## 46 -0.0125087538 6.243246e-05
## 47 -0.0485670636 6.715811e-04
## 48 0.2746669721 1.912847e-03
## 49 0.0865026075 1.772311e-03
## 50 0.3885516410 3.740935e-02
## 51 1.0069761812 2.401737e-03
## 52 -0.4899465414 2.494432e-03
## 53 0.4654204301 5.565096e-03
## 54 -1.4172422565 1.227464e-03
## 55 -1.3207954379 9.380345e-04
## 56 0.4239442388 5.741115e-04
## 57 1.1042403142 3.314205e-04
## 58 0.0891765873 2.047071e-03
## 59 -1.4517822322 1.870772e-03
## 60 0.9358689411 2.601838e-04
## 61 -1.0245241210 2.408706e-05
## 62 0.0659614531 2.412343e-03
## 63 0.3531925620 9.292370e-04
## 64 1.2971970279 7.816926e-03
## 65 1.3242905160 1.093721e-02
## 66 0.5559889750 2.995297e-03
## 67 1.9491374515 2.155293e-01
## 68 -0.4722389691 3.013446e-03
## 69 -1.3485297999 5.699382e-04
## 70 0.4224715058 2.814113e-04
## 71 0.1632937039 6.468194e-04
## 72 -0.3242818608 5.822034e-04
## 73 0.5551692944 1.664059e-03
## 74 -1.4508194727 3.495805e-03
## 75 -0.8727807697 2.475695e-04
## 76 -1.3456318001 1.142038e-03
## 77 0.0146767888 1.474067e-03
## 78 -1.5620979714 5.212927e-03
## 79 0.2764965642 3.507869e-03
## 80 -0.0387857725 9.069120e-04
## 81 0.9149161142 2.047657e-04
## 82 1.0865919256 9.457652e-04
## 83 -1.7807423750 1.307577e-02
## 84 0.6201203919 7.696028e-03
## 85 0.6750980689 1.786803e-03
## 86 -0.3489058448 1.525083e-03
## 87 -0.4199447063 8.300366e-04
## 88 1.5176644441 3.842633e-03
## 89 1.3626599334 7.484396e-04
## 90 -0.5216131603 1.069228e-04
## 91 -0.3548160988 2.664921e-03
## 92 -0.1150565420 2.033780e-03
## 93 1.0786025568 8.444261e-04
## 94 1.4493160702 3.523333e-04
## 95 -0.2619525249 4.753621e-03
## 96 -0.1809796772 2.555832e-03
## 97 1.4282286072 2.972750e-02
## 98 -0.6985748784 7.661091e-03
## 99 0.8713569569 7.595452e-03
## 100 -0.2029073709 1.191215e-03
## 101 0.7969553212 4.122280e-03
## 102 0.2370876967 4.480608e-03
## 103 0.4306964267 3.158434e-03
## 104 -0.1967702756 2.279818e-03
## 105 0.1546496071 3.508570e-04
## 106 1.4748928865 2.657265e-03
## 107 0.3198457555 3.961670e-03
## 108 0.8260486843 5.854182e-04
## 109 0.4569883836 2.133696e-04
## 110 -1.5634950160 3.572043e-03
## 111 -1.1067202524 1.297961e-04
## 112 1.6935523770 1.255658e-02
## 113 1.1220890643 2.885934e-02
## 114 -2.4702556269 5.814198e-02
## 115 -0.7895409636 8.424515e-06
## 116 0.6664681241 8.872194e-03
## 117 -0.1367483897 1.681944e-03
## 118 0.1342869184 1.299983e-03
## 119 -0.1588596370 1.069134e-03
## 120 0.4083262758 1.595126e-03
## 121 -0.5511985162 1.006036e-03
## 122 -0.9150707997 2.009261e-04
## 123 -3.1213678047 2.160595e-01
## 124 -0.2993909803 1.295175e-03
## 125 -0.3264651997 2.090380e-03
## 126 0.9013119514 1.029234e-04
## 127 0.5828321841 6.544043e-03
## 128 -0.7494238695 1.240146e-05
## 129 1.0165991933 1.181592e-04
## 130 -0.2121106482 2.107182e-03
## 131 -0.1080373217 1.031775e-02
## 132 1.3705547620 6.204918e-02
## 133 -1.8862030864 1.242387e-01
## 134 -0.5602050696 1.730865e-03
## 135 -0.8714625460 3.556301e-04
## 136 1.0680849484 2.604497e-02
## 137 0.6182528464 1.037357e-04
## 138 -0.9952645101 3.398539e-05
## 139 -1.2340613136 3.494886e-04
## 140 -0.0152109360 4.605079e-03
## 141 0.0877043311 1.402985e-03
## 142 0.8003704739 1.380084e-03
## 143 0.0002023385 6.726173e-04
## 144 -1.5904045410 3.223867e-03
## 145 -2.2235627729 3.006049e-02
## 146 0.6409532789 1.981091e-04
## 147 1.2194388839 2.834929e-04
## 148 -0.2669722929 1.123119e-03
## 149 0.9296499638 2.954246e-04
## 150 1.2292164705 1.561249e-03
## 151 0.6237667858 7.858070e-03
## 152 -0.1059026263 1.109702e-03
## 153 -0.4297065125 2.320674e-04
## 154 0.2461880777 1.254824e-03
## 155 1.4438273270 1.479450e-04
## 156 0.0448785719 2.721348e-03
## 157 -1.3532251673 2.294212e-03
## 158 -1.2564784532 6.379209e-04
## 159 -1.5781671828 8.591469e-03
## 160 -0.3950985031 1.573783e-03
## 161 0.2781159849 5.683660e-04
## 162 0.7449047868 6.468048e-03
## 163 -0.3413873310 8.088197e-04
## 164 0.1849937122 4.338177e-03
## 165 0.7554639420 2.194308e-04
## 166 1.4143657148 3.279146e-06
Country number 92 - Luxembourg has the highest Cooks distance and was therefore removed.
fit <- lm(child_mort ~ PC1 + PC2, data=mydata)
summary(fit)
##
## Call:
## lm(formula = child_mort ~ PC1 + PC2, data = mydata)
##
## Residuals:
## Min 1Q Median 3Q Max
## -44.450 -17.078 -5.659 12.552 107.173
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 38.270 1.901 20.129 < 2e-16 ***
## PC1 -16.677 1.050 -15.889 < 2e-16 ***
## PC2 -8.832 1.592 -5.549 1.13e-07 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 24.57 on 164 degrees of freedom
## Multiple R-squared: 0.6333, Adjusted R-squared: 0.6289
## F-statistic: 141.6 on 2 and 164 DF, p-value: < 2.2e-16
Based on the summary data the regression model is statistically significant, and both PC1 and PC2 are significant predictors of child mortality. The model explains a substantial portion of the variability in child mortality based on the R-squared value.
In conclusion, the Principal Component Analysis (PCA) has showed that socio-economic factors are influencing child mortality across 167 countries. By choosing child mortality as the dependent variable, this analysis shows the nature of factors impacting the vulnerability of children. The identified principal components, especially variables life expectancy, income, and certain economic indicators, offer a consolidated perspective, simplifying the intricate relationships among the explanatory variables. The R squared value of 0.6333 suggests that approximately 63.33% of the variability in child mortality rates can be explained by the socio-economic indicators represented by the principal components. This indicates a substantial influence of these variables on child mortality.