LinkFree="https://en.wikipedia.org/wiki/List_of_freedom_indices"
pathFree='//*[@id="mw-content-text"]/div[1]/table[2]'
Free=htmltab::htmltab(LinkFree, pathFree)
names(Free)
## [1] "Country" "Freedom in the World 2020"
## [3] "2020 Index of Economic Freedom" "2020 Press Freedom Index"
## [5] "2019 Democracy Index"
Free=Free[,-5]
names(Free)=c("Pais", "Libertad", "EconLib", "PrensaLib")
Free
## Pais Libertad EconLib
## 2 Afghanistan not free mostly unfree
## 3 Albania partly free moderately free
## 4 Algeria not free repressed
## 5 Andorra free n/a
## 6 Angola not free mostly unfree
## 7 Antigua and Barbuda free n/a
## 8 Argentina free mostly unfree
## 9 Armenia partly free mostly free
## 10 Australia free free
## 11 Austria free mostly free
## 12 Azerbaijan not free moderately free
## 13 Bahamas free moderately free
## 14 Bahrain not free moderately free
## 15 Bangladesh partly free mostly unfree
## 16 Barbados free moderately free
## 17 Belarus not free moderately free
## 18 Belgium free moderately free
## 19 Belize free mostly unfree
## 20 Benin partly free mostly unfree
## 21 Bhutan partly free moderately free
## 22 Bolivia partly free repressed
## 23 Bosnia and Herzegovina partly free moderately free
## 24 Botswana free moderately free
## 25 Brazil free mostly unfree
## 26 Brunei not free moderately free
## 27 Bulgaria free mostly free
## 28 Burkina Faso partly free mostly unfree
## 29 Burma not free mostly unfree
## 30 Burundi not free repressed
## 31 Cambodia not free mostly unfree
## 32 Cameroon not free mostly unfree
## 33 Canada free mostly free
## 34 Cape Verde free moderately free
## 35 Central African Republic not free mostly unfree
## 36 Chad not free mostly unfree
## 37 Chile free mostly free
## 38 China not free mostly unfree
## 39 Colombia partly free moderately free
## 40 Comoros partly free mostly unfree
## 41 Costa Rica free moderately free
## 42 Congo, Democratic Republic of the not free repressed
## 43 Congo, Republic of the not free repressed
## 44 Croatia free moderately free
## 45 Cuba not free repressed
## 46 Cyprus free mostly free
## 47 Czech Republic free mostly free
## 48 Denmark free mostly free
## 49 Djibouti not free mostly unfree
## 50 Dominica free moderately free
## 51 Dominican Republic partly free moderately free
## 52 East Timor free repressed
## 53 Ecuador partly free mostly unfree
## 54 Egypt not free mostly unfree
## 55 El Salvador partly free moderately free
## 56 Equatorial Guinea not free repressed
## 57 Eritrea not free repressed
## 58 Estonia free mostly free
## 59 Eswatini not free mostly unfree
## 60 Ethiopia not free mostly unfree
## 61 Fiji partly free moderately free
## 62 Finland free mostly free
## 63 France free moderately free
## 64 Gabon not free mostly unfree
## 65 Gambia partly free mostly unfree
## 66 Georgia partly free mostly free
## 67 Germany free mostly free
## 68 Ghana free mostly unfree
## 69 Greece free mostly unfree
## 70 Grenada free n/a
## 71 Guatemala partly free moderately free
## 72 Guinea partly free mostly unfree
## 73 Guinea-Bissau partly free mostly unfree
## 74 Guyana free mostly unfree
## 75 Haiti partly free mostly unfree
## 76 Honduras partly free moderately free
## 77 Hong Kong partly free free
## 78 Hungary partly free moderately free
## 79 Iceland free mostly free
## 80 India free mostly unfree
## 81 Indonesia partly free moderately free
## 82 Iran not free repressed
## 83 Iraq not free n/a
## 84 Ireland free free
## 85 Israel free mostly free
## 86 Italy free moderately free
## 87 Ivory Coast partly free mostly unfree
## 88 Jamaica free moderately free
## 89 Japan free mostly free
## 90 Jordan partly free moderately free
## 91 Kazakhstan not free moderately free
## 92 Kenya partly free mostly unfree
## 93 Kiribati free repressed
## 94 Korea, North not free repressed
## 95 Korea, South free mostly free
## 96 Kosovo partly free moderately free
## 97 Kuwait partly free moderately free
## 98 Kyrgyzstan partly free moderately free
## 99 Laos not free mostly unfree
## 100 Latvia free mostly free
## 101 Lebanon partly free mostly unfree
## 102 Lesotho partly free mostly unfree
## 103 Liberia partly free repressed
## 104 Libya not free n/a
## 105 Liechtenstein free n/a
## 106 Lithuania free mostly free
## 107 Luxembourg free mostly free
## 108 Macau n/a mostly free
## 109 Madagascar partly free moderately free
## 110 Malawi partly free mostly unfree
## 111 Malaysia partly free mostly free
## 112 Maldives partly free mostly unfree
## 113 Mali partly free mostly unfree
## 114 Malta free moderately free
## 115 Marshall Islands free n/a
## 116 Mauritania partly free mostly unfree
## 117 Mauritius free mostly free
## 118 Mexico partly free moderately free
## 119 Micronesia, Federated States of free mostly unfree
## 120 Moldova partly free moderately free
## 121 Monaco free n/a
## 122 Mongolia free mostly unfree
## 123 Montenegro partly free moderately free
## 124 Morocco partly free moderately free
## 125 Mozambique partly free mostly unfree
## 126 Namibia free moderately free
## 127 Nauru free n/a
## 128 Nepal partly free mostly unfree
## 129 Netherlands free mostly free
## 130 New Zealand free free
## 131 Nicaragua not free mostly unfree
## 132 Niger partly free mostly unfree
## 133 Nigeria partly free mostly unfree
## 134 North Macedonia partly free moderately free
## 135 Norway free mostly free
## 136 Oman not free moderately free
## 137 Pakistan partly free mostly unfree
## 138 Palau free n/a
## 139 Palestine not free n/a
## 140 Panama free moderately free
## 141 Papua New Guinea partly free mostly unfree
## 142 Paraguay partly free moderately free
## 143 Peru free moderately free
## 144 Philippines partly free moderately free
## 145 Poland free moderately free
## 146 Portugal free moderately free
## 147 Qatar not free mostly free
## 148 Romania free moderately free
## 149 Russia not free moderately free
## 150 Rwanda not free mostly free
## 151 Saint Kitts and Nevis free n/a
## 152 Saint Lucia free moderately free
## 153 Saint Vincent and the Grenadines free moderately free
## 154 Samoa free moderately free
## 155 San Marino free n/a
## 156 São Tomé and Príncipe free mostly unfree
## 157 Saudi Arabia not free moderately free
## 158 Senegal partly free mostly unfree
## 159 Serbia partly free moderately free
## 160 Seychelles partly free moderately free
## 161 Sierra Leone partly free repressed
## 162 Singapore partly free free
## 163 Slovakia free moderately free
## 164 Slovenia free moderately free
## 165 Solomon Islands free mostly unfree
## 166 Somalia not free n/a
## 167 South Africa free mostly unfree
## 168 South Sudan not free n/a
## 169 Spain free moderately free
## 170 Sri Lanka partly free mostly unfree
## 171 Sudan not free repressed
## 172 Suriname free repressed
## 173 Sweden free mostly free
## 174 Switzerland free free
## 175 Syria not free n/a
## 176 Taiwan free mostly free
## 177 Tajikistan not free mostly unfree
## 178 Tanzania partly free moderately free
## 179 Thailand partly free moderately free
## 180 Togo partly free mostly unfree
## 181 Tonga free mostly unfree
## 182 Trinidad and Tobago free mostly unfree
## 183 Tunisia free mostly unfree
## 184 Turkey not free moderately free
## 185 Turkmenistan not free repressed
## 186 Tuvalu free n/a
## 187 Uganda not free mostly unfree
## 188 Ukraine partly free mostly unfree
## 189 United Arab Emirates not free mostly free
## 190 United Kingdom free mostly free
## 191 United States free mostly free
## 192 Uruguay free moderately free
## 193 Uzbekistan not free mostly unfree
## 194 Vanuatu free moderately free
## 195 Venezuela not free repressed
## 196 Vietnam not free mostly unfree
## 197 Yemen not free n/a
## 198 Zambia partly free mostly unfree
## 199 Zimbabwe partly free repressed
## PrensaLib
## 2 difficult situation
## 3 noticeable problems
## 4 difficult situation
## 5 satisfactory situation
## 6 noticeable problems
## 7 satisfactory situation
## 8 noticeable problems
## 9 noticeable problems
## 10 satisfactory situation
## 11 satisfactory situation
## 12 very serious situation
## 13 n/a
## 14 very serious situation
## 15 difficult situation
## 16 n/a
## 17 difficult situation
## 18 good situation
## 19 noticeable problems
## 20 difficult situation
## 21 noticeable problems
## 22 difficult situation
## 23 noticeable problems
## 24 satisfactory situation
## 25 noticeable problems
## 26 difficult situation
## 27 difficult situation
## 28 satisfactory situation
## 29 difficult situation
## 30 very serious situation
## 31 difficult situation
## 32 difficult situation
## 33 satisfactory situation
## 34 satisfactory situation
## 35 difficult situation
## 36 difficult situation
## 37 noticeable problems
## 38 very serious situation
## 39 difficult situation
## 40 noticeable problems
## 41 good situation
## 42 difficult situation
## 43 difficult situation
## 44 noticeable problems
## 45 very serious situation
## 46 satisfactory situation
## 47 satisfactory situation
## 48 good situation
## 49 very serious situation
## 50 satisfactory situation
## 51 noticeable problems
## 52 noticeable problems
## 53 noticeable problems
## 54 very serious situation
## 55 noticeable problems
## 56 very serious situation
## 57 very serious situation
## 58 good situation
## 59 difficult situation
## 60 noticeable problems
## 61 noticeable problems
## 62 good situation
## 63 satisfactory situation
## 64 difficult situation
## 65 noticeable problems
## 66 noticeable problems
## 67 good situation
## 68 satisfactory situation
## 69 noticeable problems
## 70 satisfactory situation
## 71 difficult situation
## 72 noticeable problems
## 73 noticeable problems
## 74 noticeable problems
## 75 noticeable problems
## 76 difficult situation
## 77 noticeable problems
## 78 noticeable problems
## 79 satisfactory situation
## 80 difficult situation
## 81 difficult situation
## 82 very serious situation
## 83 very serious situation
## 84 good situation
## 85 noticeable problems
## 86 satisfactory situation
## 87 noticeable problems
## 88 good situation
## 89 noticeable problems
## 90 difficult situation
## 91 difficult situation
## 92 noticeable problems
## 93 n/a
## 94 very serious situation
## 95 satisfactory situation
## 96 noticeable problems
## 97 noticeable problems
## 98 noticeable problems
## 99 very serious situation
## 100 satisfactory situation
## 101 noticeable problems
## 102 noticeable problems
## 103 noticeable problems
## 104 very serious situation
## 105 satisfactory situation
## 106 satisfactory situation
## 107 satisfactory situation
## 108 n/a
## 109 noticeable problems
## 110 noticeable problems
## 111 noticeable problems
## 112 noticeable problems
## 113 noticeable problems
## 114 noticeable problems
## 115 n/a
## 116 noticeable problems
## 117 noticeable problems
## 118 difficult situation
## 119 n/a
## 120 noticeable problems
## 121 n/a
## 122 noticeable problems
## 123 noticeable problems
## 124 difficult situation
## 125 noticeable problems
## 126 satisfactory situation
## 127 n/a
## 128 difficult situation
## 129 good situation
## 130 good situation
## 131 difficult situation
## 132 noticeable problems
## 133 difficult situation
## 134 noticeable problems
## 135 good situation
## 136 difficult situation
## 137 difficult situation
## 138 n/a
## 139 difficult situation
## 140 noticeable problems
## 141 satisfactory situation
## 142 noticeable problems
## 143 noticeable problems
## 144 difficult situation
## 145 noticeable problems
## 146 good situation
## 147 difficult situation
## 148 noticeable problems
## 149 difficult situation
## 150 difficult situation
## 151 satisfactory situation
## 152 satisfactory situation
## 153 satisfactory situation
## 154 satisfactory situation
## 155 n/a
## 156 n/a
## 157 very serious situation
## 158 satisfactory situation
## 159 noticeable problems
## 160 noticeable problems
## 161 noticeable problems
## 162 very serious situation
## 163 satisfactory situation
## 164 satisfactory situation
## 165 n/a
## 166 very serious situation
## 167 satisfactory situation
## 168 difficult situation
## 169 satisfactory situation
## 170 difficult situation
## 171 very serious situation
## 172 satisfactory situation
## 173 good situation
## 174 good situation
## 175 very serious situation
## 176 satisfactory situation
## 177 very serious situation
## 178 difficult situation
## 179 difficult situation
## 180 noticeable problems
## 181 noticeable problems
## 182 satisfactory situation
## 183 noticeable problems
## 184 difficult situation
## 185 very serious situation
## 186 n/a
## 187 difficult situation
## 188 noticeable problems
## 189 difficult situation
## 190 satisfactory situation
## 191 satisfactory situation
## 192 satisfactory situation
## 193 difficult situation
## 194 n/a
## 195 difficult situation
## 196 very serious situation
## 197 very serious situation
## 198 difficult situation
## 199 difficult situation
str(Free)
## 'data.frame': 198 obs. of 4 variables:
## $ Pais : chr " Afghanistan" " Albania" " Algeria" " Andorra" ...
## $ Libertad : chr "not free" "partly free" "not free" "free" ...
## $ EconLib : chr "mostly unfree" "moderately free" "repressed" "n/a" ...
## $ PrensaLib: chr "difficult situation" "noticeable problems" "difficult situation" "satisfactory situation" ...
Free[,c(2,3,4)]=lapply(Free[,c(2,3,4)],as.ordered)
str(Free)
## 'data.frame': 198 obs. of 4 variables:
## $ Pais : chr " Afghanistan" " Albania" " Algeria" " Andorra" ...
## $ Libertad : Ord.factor w/ 4 levels "free"<"n/a"<"not free"<..: 3 4 3 1 3 1 1 4 1 1 ...
## $ EconLib : Ord.factor w/ 6 levels "free"<"moderately free"<..: 4 2 6 5 4 5 4 3 1 3 ...
## $ PrensaLib: Ord.factor w/ 6 levels "difficult situation"<..: 1 4 1 5 4 5 4 4 5 5 ...
LinkHappy="https://en.wikipedia.org/wiki/World_Happiness_Report"
pathHappy='//*[@id="mw-content-text"]/div[1]/table'
Happy=htmltab::htmltab(LinkHappy, pathHappy)
names(Happy)=c("Puesto", "Pais", "Puntuacion", "PBI", "AsistSocial", "ExpectVida", "LibDecis", "Generosidad", "PercepCorrup")
names(Happy)
## [1] "Puesto" "Pais" "Puntuacion" "PBI"
## [5] "AsistSocial" "ExpectVida" "LibDecis" "Generosidad"
## [9] "PercepCorrup"
Happy=Happy[,-1]
Happy[,c(2:8)]=lapply(Happy[,c(2:8)],as.numeric)
str(Happy)
## 'data.frame': 153 obs. of 8 variables:
## $ Pais : chr " Finland" " Denmark" " Switzerland" " Iceland" ...
## $ Puntuacion : num 7.81 7.65 7.56 7.5 7.49 ...
## $ PBI : num 1.28 1.33 1.39 1.33 1.42 ...
## $ AsistSocial : num 1.5 1.5 1.47 1.55 1.5 ...
## $ ExpectVida : num 0.961 0.979 1.041 1.001 1.008 ...
## $ LibDecis : num 0.662 0.665 0.629 0.662 0.67 0.614 0.65 0.647 0.603 0.61 ...
## $ Generosidad : num 0.16 0.243 0.269 0.362 0.288 0.336 0.273 0.326 0.256 0.196 ...
## $ PercepCorrup: num 0.478 0.495 0.408 0.145 0.434 0.369 0.442 0.461 0.281 0.367 ...
LinkDem="https://en.wikipedia.org/wiki/Democracy_Index"
pathDem='//*[@id="mw-content-text"]/div[1]/table[2]'
Demo=htmltab::htmltab(LinkDem, pathDem)
Demo=Demo[,-1]
Demo=Demo[,-10]
names(Demo)=c("Pais", "PuntajeDemo", "ProcesoELectoral", "FuncionamientoGob", "ParticipPol", "CulturaPol", "LibCivil", "Regimen", "Region")
names(Demo)
## [1] "Pais" "PuntajeDemo" "ProcesoELectoral"
## [4] "FuncionamientoGob" "ParticipPol" "CulturaPol"
## [7] "LibCivil" "Regimen" "Region"
Demo[,c(2:6)]=lapply(Demo[,c(2:6)],as.numeric)
Demo$Regimen=as.ordered(Demo$Regimen)
Demo$Region=as.factor(Demo$Region)
str(Demo)
## 'data.frame': 167 obs. of 9 variables:
## $ Pais : chr " Norway" " Iceland" " Sweden" " New Zealand" ...
## $ PuntajeDemo : num 9.87 9.58 9.39 9.26 9.25 9.24 9.22 9.22 9.09 9.03 ...
## $ ProcesoELectoral : num 10 10 9.58 10 10 10 10 9.58 10 9.58 ...
## $ FuncionamientoGob: num 9.64 9.29 9.64 9.29 8.93 7.86 9.29 9.64 8.93 9.29 ...
## $ ParticipPol : num 10 8.89 8.33 8.89 8.89 8.33 8.33 7.78 7.78 7.78 ...
## $ CulturaPol : num 10 10 10 8.13 8.75 10 9.38 9.38 8.75 9.38 ...
## $ LibCivil : chr "9.71" "9.71" "9.41" "10.00" ...
## $ Regimen : Ord.factor w/ 4 levels "Authoritarian"<..: 3 3 3 3 3 3 3 3 3 3 ...
## $ Region : Factor w/ 7 levels "Asia & Australasia",..: 7 7 7 1 7 7 7 5 1 7 ...
FreeHappy= merge(Free,Happy, by = 'Pais',all=F)
Indices= merge(FreeHappy,Demo, by = 'Pais',all=F)
Indices
## Pais Libertad EconLib
## 1 Nepal partly free mostly unfree
## 2 Switzerland free free
## 3 Afghanistan not free mostly unfree
## 4 Albania partly free moderately free
## 5 Algeria not free repressed
## 6 Argentina free mostly unfree
## 7 Armenia partly free mostly free
## 8 Australia free free
## 9 Austria free mostly free
## 10 Azerbaijan not free moderately free
## 11 Bahrain not free moderately free
## 12 Bangladesh partly free mostly unfree
## 13 Belarus not free moderately free
## 14 Belgium free moderately free
## 15 Benin partly free mostly unfree
## 16 Bolivia partly free repressed
## 17 Bosnia and Herzegovina partly free moderately free
## 18 Botswana free moderately free
## 19 Brazil free mostly unfree
## 20 Bulgaria free mostly free
## 21 Burkina Faso partly free mostly unfree
## 22 Burundi not free repressed
## 23 Cambodia not free mostly unfree
## 24 Cameroon not free mostly unfree
## 25 Canada free mostly free
## 26 Central African Republic not free mostly unfree
## 27 Chad not free mostly unfree
## 28 Chile free mostly free
## 29 China not free mostly unfree
## 30 Colombia partly free moderately free
## 31 Comoros partly free mostly unfree
## 32 Costa Rica free moderately free
## 33 Croatia free moderately free
## 34 Cyprus free mostly free
## 35 Czech Republic free mostly free
## 36 Denmark free mostly free
## 37 Dominican Republic partly free moderately free
## 38 Ecuador partly free mostly unfree
## 39 Egypt not free mostly unfree
## 40 El Salvador partly free moderately free
## 41 Estonia free mostly free
## 42 Ethiopia not free mostly unfree
## 43 Finland free mostly free
## 44 France free moderately free
## 45 Gabon not free mostly unfree
## 46 Gambia partly free mostly unfree
## 47 Georgia partly free mostly free
## 48 Germany free mostly free
## 49 Ghana free mostly unfree
## 50 Greece free mostly unfree
## 51 Guatemala partly free moderately free
## 52 Guinea partly free mostly unfree
## 53 Haiti partly free mostly unfree
## 54 Honduras partly free moderately free
## 55 Hong Kong partly free free
## 56 Hungary partly free moderately free
## 57 Iceland free mostly free
## 58 India free mostly unfree
## 59 Indonesia partly free moderately free
## 60 Iran not free repressed
## 61 Iraq not free n/a
## 62 Ireland free free
## 63 Israel free mostly free
## 64 Italy free moderately free
## 65 Ivory Coast partly free mostly unfree
## 66 Jamaica free moderately free
## 67 Japan free mostly free
## 68 Jordan partly free moderately free
## 69 Kazakhstan not free moderately free
## 70 Kenya partly free mostly unfree
## 71 Kuwait partly free moderately free
## 72 Kyrgyzstan partly free moderately free
## 73 Laos not free mostly unfree
## 74 Latvia free mostly free
## 75 Lebanon partly free mostly unfree
## 76 Lesotho partly free mostly unfree
## 77 Liberia partly free repressed
## 78 Libya not free n/a
## 79 Lithuania free mostly free
## 80 Luxembourg free mostly free
## 81 Madagascar partly free moderately free
## 82 Malawi partly free mostly unfree
## 83 Malaysia partly free mostly free
## 84 Mali partly free mostly unfree
## 85 Malta free moderately free
## 86 Mauritania partly free mostly unfree
## 87 Mauritius free mostly free
## 88 Mexico partly free moderately free
## 89 Moldova partly free moderately free
## 90 Mongolia free mostly unfree
## 91 Montenegro partly free moderately free
## 92 Morocco partly free moderately free
## 93 Mozambique partly free mostly unfree
## 94 Namibia free moderately free
## 95 Netherlands free mostly free
## 96 New Zealand free free
## 97 Nicaragua not free mostly unfree
## 98 Niger partly free mostly unfree
## 99 Nigeria partly free mostly unfree
## 100 Norway free mostly free
## 101 Pakistan partly free mostly unfree
## 102 Palestine not free n/a
## 103 Panama free moderately free
## 104 Paraguay partly free moderately free
## 105 Peru free moderately free
## 106 Philippines partly free moderately free
## 107 Poland free moderately free
## 108 Portugal free moderately free
## 109 Romania free moderately free
## 110 Russia not free moderately free
## 111 Rwanda not free mostly free
## 112 Saudi Arabia not free moderately free
## 113 Senegal partly free mostly unfree
## 114 Serbia partly free moderately free
## 115 Sierra Leone partly free repressed
## 116 Singapore partly free free
## 117 Slovakia free moderately free
## 118 Slovenia free moderately free
## 119 South Africa free mostly unfree
## 120 Spain free moderately free
## 121 Sri Lanka partly free mostly unfree
## 122 Sweden free mostly free
## 123 Taiwan free mostly free
## 124 Tajikistan not free mostly unfree
## 125 Tanzania partly free moderately free
## 126 Thailand partly free moderately free
## 127 Togo partly free mostly unfree
## 128 Trinidad and Tobago free mostly unfree
## 129 Tunisia free mostly unfree
## 130 Turkey not free moderately free
## 131 Turkmenistan not free repressed
## 132 Uganda not free mostly unfree
## 133 Ukraine partly free mostly unfree
## 134 United Arab Emirates not free mostly free
## 135 United Kingdom free mostly free
## 136 United States free mostly free
## 137 Uruguay free moderately free
## 138 Uzbekistan not free mostly unfree
## 139 Venezuela not free repressed
## 140 Vietnam not free mostly unfree
## 141 Yemen not free n/a
## 142 Zambia partly free mostly unfree
## 143 Zimbabwe partly free repressed
## PrensaLib Puntuacion PBI AsistSocial ExpectVida
## 1 difficult situation 5.137 0.444 1.101 0.669
## 2 good situation 7.560 1.391 1.472 1.041
## 3 difficult situation 2.567 0.301 0.356 0.266
## 4 noticeable problems 4.883 0.907 0.830 0.846
## 5 difficult situation 5.005 0.944 1.143 0.745
## 6 noticeable problems 5.975 1.028 1.373 0.850
## 7 noticeable problems 4.677 0.808 1.035 0.776
## 8 satisfactory situation 7.223 1.310 1.477 1.023
## 9 satisfactory situation 7.294 1.317 1.437 1.001
## 10 very serious situation 5.165 0.990 1.181 0.731
## 11 very serious situation 6.227 1.297 1.315 0.839
## 12 difficult situation 4.833 0.556 0.869 0.695
## 13 difficult situation 5.540 1.019 1.387 0.753
## 14 good situation 6.864 1.296 1.399 0.965
## 15 difficult situation 5.216 0.366 0.352 0.328
## 16 difficult situation 5.747 0.731 1.142 0.662
## 17 noticeable problems 5.674 0.918 1.204 0.814
## 18 satisfactory situation 3.479 0.998 1.086 0.494
## 19 noticeable problems 6.376 0.953 1.363 0.766
## 20 difficult situation 5.102 1.047 1.461 0.778
## 21 satisfactory situation 4.769 0.302 0.929 0.313
## 22 very serious situation 3.775 0.000 0.404 0.295
## 23 difficult situation 4.848 0.545 1.071 0.588
## 24 difficult situation 5.085 0.504 0.900 0.270
## 25 satisfactory situation 7.232 1.302 1.435 1.023
## 26 difficult situation 3.476 0.041 0.000 0.000
## 27 difficult situation 4.423 0.302 0.739 0.109
## 28 noticeable problems 6.228 1.097 1.323 0.889
## 29 very serious situation 5.124 0.991 1.132 0.867
## 30 difficult situation 6.163 0.932 1.334 0.810
## 31 noticeable problems 4.289 0.416 0.723 0.437
## 32 good situation 7.121 0.981 1.375 0.940
## 33 noticeable problems 5.505 1.109 1.311 0.901
## 34 satisfactory situation 6.159 1.213 1.149 1.026
## 35 satisfactory situation 6.911 1.212 1.405 0.895
## 36 good situation 7.646 1.327 1.503 0.979
## 37 noticeable problems 5.689 0.983 1.329 0.742
## 38 noticeable problems 5.925 0.853 1.221 0.839
## 39 very serious situation 4.151 0.875 0.983 0.597
## 40 noticeable problems 6.348 0.749 1.149 0.753
## 41 good situation 6.022 1.192 1.453 0.843
## 42 noticeable problems 4.186 0.315 1.001 0.484
## 43 good situation 7.809 1.285 1.500 0.961
## 44 satisfactory situation 6.664 1.268 1.459 1.030
## 45 difficult situation 4.829 0.988 1.106 0.523
## 46 noticeable problems 4.751 0.257 0.883 0.353
## 47 noticeable problems 4.673 0.847 0.731 0.695
## 48 good situation 7.076 1.314 1.369 0.972
## 49 satisfactory situation 5.148 0.576 0.966 0.432
## 50 noticeable problems 5.515 1.128 1.169 0.979
## 51 difficult situation 6.399 0.754 1.174 0.706
## 52 noticeable problems 4.949 0.390 0.751 0.334
## 53 noticeable problems 3.721 0.285 0.647 0.374
## 54 difficult situation 5.953 0.599 1.187 0.792
## 55 noticeable problems 5.510 1.377 1.244 1.137
## 56 noticeable problems 6.000 1.164 1.423 0.807
## 57 satisfactory situation 7.504 1.327 1.548 1.001
## 58 difficult situation 3.573 0.731 0.644 0.541
## 59 difficult situation 5.286 0.892 1.155 0.610
## 60 very serious situation 4.672 1.029 0.886 0.749
## 61 very serious situation 4.785 0.982 1.011 0.529
## 62 good situation 7.094 1.447 1.471 0.976
## 63 noticeable problems 7.129 1.216 1.403 1.008
## 64 satisfactory situation 6.387 1.236 1.347 1.023
## 65 noticeable problems 5.233 0.537 0.800 0.155
## 66 good situation 5.890 0.779 1.408 0.788
## 67 noticeable problems 5.871 1.267 1.332 1.073
## 68 difficult situation 4.633 0.785 1.140 0.778
## 69 difficult situation 6.058 1.123 1.453 0.699
## 70 noticeable problems 4.583 0.476 0.905 0.536
## 71 noticeable problems 6.102 1.425 1.245 0.776
## 72 noticeable problems 5.542 0.513 1.341 0.681
## 73 very serious situation 4.889 0.715 0.987 0.486
## 74 satisfactory situation 5.950 1.141 1.414 0.778
## 75 noticeable problems 4.772 0.889 1.192 0.789
## 76 noticeable problems 3.653 0.455 1.089 0.101
## 77 noticeable problems 4.558 0.174 0.921 0.392
## 78 very serious situation 5.489 1.022 1.196 0.616
## 79 satisfactory situation 6.215 1.194 1.433 0.795
## 80 satisfactory situation 7.238 1.537 1.388 0.986
## 81 noticeable problems 4.166 0.245 0.824 0.501
## 82 noticeable problems 3.538 0.177 0.530 0.446
## 83 noticeable problems 5.384 1.168 1.174 0.789
## 84 noticeable problems 4.729 0.352 0.973 0.235
## 85 noticeable problems 6.773 1.253 1.443 0.972
## 86 noticeable problems 4.375 0.540 1.113 0.425
## 87 noticeable problems 6.101 1.074 1.396 0.763
## 88 difficult situation 6.465 1.024 1.226 0.832
## 89 noticeable problems 5.608 0.708 1.237 0.713
## 90 noticeable problems 5.456 0.905 1.459 0.616
## 91 noticeable problems 5.546 1.010 1.266 0.839
## 92 difficult situation 5.095 0.759 0.645 0.745
## 93 noticeable problems 4.624 0.179 0.955 0.324
## 94 satisfactory situation 4.571 0.840 1.246 0.407
## 95 good situation 7.449 1.339 1.464 0.976
## 96 good situation 7.300 1.242 1.487 1.008
## 97 difficult situation 6.137 0.620 1.271 0.803
## 98 noticeable problems 4.910 0.108 0.704 0.299
## 99 difficult situation 4.724 0.646 0.987 0.168
## 100 good situation 7.488 1.424 1.495 1.008
## 101 difficult situation 5.693 0.617 0.873 0.470
## 102 difficult situation 4.553 0.588 1.195 0.614
## 103 noticeable problems 6.305 1.098 1.376 0.879
## 104 noticeable problems 5.692 0.898 1.368 0.736
## 105 noticeable problems 5.797 0.919 1.208 0.824
## 106 difficult situation 6.006 0.775 1.245 0.602
## 107 noticeable problems 6.186 1.169 1.310 0.868
## 108 good situation 5.911 1.169 1.340 0.979
## 109 noticeable problems 6.124 1.120 1.194 0.792
## 110 difficult situation 5.546 1.127 1.379 0.680
## 111 difficult situation 3.312 0.343 0.523 0.572
## 112 very serious situation 6.406 1.334 1.310 0.760
## 113 satisfactory situation 4.981 0.504 0.955 0.518
## 114 noticeable problems 5.778 0.988 1.327 0.828
## 115 noticeable problems 3.926 0.241 0.748 0.204
## 116 very serious situation 6.377 1.520 1.395 1.138
## 117 satisfactory situation 6.281 1.195 1.424 0.853
## 118 satisfactory situation 6.363 1.209 1.465 0.933
## 119 satisfactory situation 4.814 0.902 1.259 0.407
## 120 satisfactory situation 6.401 1.231 1.421 1.051
## 121 difficult situation 4.327 0.898 1.195 0.792
## 122 good situation 7.353 1.322 1.433 0.986
## 123 satisfactory situation 6.455 1.327 1.358 0.878
## 124 very serious situation 5.556 0.475 1.218 0.681
## 125 difficult situation 3.476 0.457 0.873 0.443
## 126 difficult situation 5.999 1.007 1.348 0.794
## 127 noticeable problems 4.187 0.268 0.548 0.343
## 128 satisfactory situation 6.192 1.168 1.407 0.659
## 129 noticeable problems 4.392 0.875 0.872 0.781
## 130 difficult situation 5.132 1.127 1.197 0.781
## 131 very serious situation 5.119 1.009 1.510 0.612
## 132 difficult situation 4.432 0.312 1.052 0.378
## 133 noticeable problems 4.561 0.780 1.321 0.699
## 134 difficult situation 6.791 1.431 1.251 0.788
## 135 satisfactory situation 7.165 1.273 1.458 0.976
## 136 satisfactory situation 6.940 1.374 1.405 0.832
## 137 satisfactory situation 6.440 1.071 1.425 0.857
## 138 difficult situation 6.258 0.697 1.434 0.717
## 139 difficult situation 5.053 0.770 1.349 0.767
## 140 very serious situation 5.353 0.718 1.253 0.819
## 141 very serious situation 3.527 0.393 1.177 0.415
## 142 difficult situation 3.759 0.537 0.896 0.364
## 143 difficult situation 3.299 0.426 1.048 0.375
## LibDecis Generosidad PercepCorrup PuntajeDemo ProcesoELectoral
## 1 0.481 0.301 0.128 5.28 4.83
## 2 0.629 0.269 0.408 9.03 9.58
## 3 0.000 0.135 0.001 2.85 3.42
## 4 0.462 0.171 0.025 5.89 7.00
## 5 0.084 0.119 0.129 4.01 3.08
## 6 0.521 0.070 0.060 7.02 9.17
## 7 0.378 0.107 0.105 5.54 7.50
## 8 0.622 0.325 0.336 9.09 10.00
## 9 0.603 0.256 0.281 8.29 9.58
## 10 0.468 0.040 0.247 2.75 0.50
## 11 0.610 0.287 0.127 2.55 0.83
## 12 0.604 0.177 0.177 5.88 7.83
## 13 0.291 0.090 0.194 2.48 0.92
## 14 0.500 0.147 0.209 7.64 9.58
## 15 0.406 0.197 0.126 5.09 4.67
## 16 0.574 0.138 0.073 4.84 4.75
## 17 0.305 0.264 0.001 4.86 6.17
## 18 0.509 0.033 0.102 7.81 9.17
## 19 0.483 0.132 0.107 6.86 9.58
## 20 0.418 0.104 0.000 7.03 9.17
## 21 0.322 0.186 0.126 4.04 3.92
## 22 0.275 0.187 0.212 2.15 0.00
## 23 0.675 0.233 0.073 3.53 0.83
## 24 0.439 0.198 0.054 2.85 1.67
## 25 0.644 0.282 0.352 9.22 9.58
## 26 0.293 0.254 0.028 1.32 1.25
## 27 0.229 0.211 0.086 1.61 0.00
## 28 0.417 0.156 0.063 8.08 9.58
## 29 0.602 0.079 0.117 2.26 0.00
## 30 0.527 0.092 0.046 7.13 9.17
## 31 0.181 0.259 0.100 3.15 2.08
## 32 0.645 0.131 0.096 8.13 9.58
## 33 0.381 0.114 0.012 6.57 9.17
## 34 0.459 0.228 0.051 7.59 9.17
## 35 0.506 0.046 0.050 7.69 9.58
## 36 0.665 0.243 0.495 9.22 10.00
## 37 0.563 0.112 0.116 6.54 9.17
## 38 0.555 0.115 0.087 6.33 8.75
## 39 0.374 0.069 0.095 3.06 2.67
## 40 0.524 0.119 0.117 6.15 9.17
## 41 0.577 0.125 0.202 7.90 9.58
## 42 0.413 0.228 0.117 3.44 0.42
## 43 0.662 0.160 0.478 9.25 10.00
## 44 0.514 0.113 0.227 8.12 9.58
## 45 0.369 0.052 0.056 3.61 2.58
## 46 0.403 0.426 0.158 4.33 4.00
## 47 0.485 0.048 0.174 5.42 7.83
## 48 0.564 0.252 0.309 8.68 9.58
## 49 0.477 0.261 0.057 6.63 8.33
## 50 0.174 0.000 0.049 7.43 9.58
## 51 0.613 0.171 0.098 5.26 6.92
## 52 0.372 0.249 0.112 3.14 3.50
## 53 0.169 0.464 0.162 4.57 4.75
## 54 0.568 0.257 0.087 5.42 7.83
## 55 0.459 0.288 0.332 6.02 3.58
## 56 0.386 0.070 0.028 6.63 8.75
## 57 0.662 0.362 0.145 9.58 10.00
## 58 0.581 0.237 0.106 6.90 8.67
## 59 0.568 0.543 0.038 6.48 7.92
## 60 0.301 0.277 0.143 2.38 0.00
## 61 0.284 0.153 0.073 3.74 5.25
## 62 0.588 0.295 0.373 9.24 10.00
## 63 0.421 0.267 0.100 7.86 9.17
## 64 0.321 0.170 0.040 7.52 9.58
## 65 0.397 0.170 0.093 4.05 4.33
## 66 0.553 0.116 0.030 6.96 8.75
## 67 0.495 0.036 0.181 7.99 8.75
## 68 0.425 0.091 0.152 3.93 3.58
## 69 0.497 0.154 0.110 2.94 0.50
## 70 0.519 0.394 0.067 5.18 3.50
## 71 0.570 0.133 0.113 3.93 3.58
## 72 0.615 0.301 0.030 4.89 6.08
## 73 0.612 0.273 0.194 2.14 0.00
## 74 0.329 0.075 0.090 7.49 9.58
## 75 0.186 0.159 0.022 4.36 3.92
## 76 0.409 0.103 0.050 6.54 9.17
## 77 0.406 0.227 0.051 5.45 7.42
## 78 0.451 0.143 0.172 2.02 0.00
## 79 0.420 0.054 0.081 7.50 9.58
## 80 0.610 0.196 0.367 8.81 10.00
## 81 0.193 0.191 0.076 5.64 7.92
## 82 0.487 0.213 0.132 5.50 6.08
## 83 0.597 0.275 0.062 7.16 9.17
## 84 0.378 0.170 0.062 4.92 6.42
## 85 0.633 0.341 0.179 7.95 9.17
## 86 0.186 0.129 0.122 3.92 3.50
## 87 0.591 0.187 0.084 8.22 9.17
## 88 0.554 0.083 0.083 6.09 7.83
## 89 0.390 0.174 0.014 5.75 6.58
## 90 0.356 0.264 0.047 6.50 9.17
## 91 0.303 0.149 0.098 5.65 5.67
## 92 0.450 0.040 0.077 5.10 5.25
## 93 0.561 0.220 0.163 3.65 2.58
## 94 0.445 0.076 0.054 6.43 6.58
## 95 0.614 0.336 0.369 9.01 9.58
## 96 0.647 0.326 0.461 9.26 10.00
## 97 0.560 0.213 0.174 3.55 1.25
## 98 0.435 0.208 0.138 3.29 2.92
## 99 0.435 0.221 0.048 4.12 5.17
## 100 0.670 0.288 0.434 9.87 10.00
## 101 0.405 0.229 0.123 4.25 6.08
## 102 0.299 0.092 0.072 3.89 3.33
## 103 0.580 0.097 0.054 7.05 9.58
## 104 0.587 0.204 0.065 6.24 8.75
## 105 0.513 0.092 0.027 6.60 9.17
## 106 0.622 0.129 0.130 6.64 9.17
## 107 0.558 0.063 0.161 6.62 9.17
## 108 0.590 0.053 0.028 8.03 9.58
## 109 0.535 0.068 0.001 6.49 9.17
## 110 0.399 0.099 0.046 3.11 2.17
## 111 0.604 0.236 0.486 3.16 1.42
## 112 0.548 0.087 0.163 1.93 0.00
## 113 0.352 0.164 0.082 5.81 6.08
## 114 0.395 0.150 0.059 6.41 8.25
## 115 0.382 0.258 0.048 4.86 6.58
## 116 0.635 0.219 0.533 6.02 3.92
## 117 0.424 0.117 0.011 7.17 9.58
## 118 0.647 0.146 0.077 7.50 9.58
## 119 0.435 0.126 0.060 7.24 7.42
## 120 0.426 0.165 0.110 8.29 9.58
## 121 0.529 0.253 0.049 6.27 7.00
## 122 0.650 0.273 0.442 9.39 9.58
## 123 0.449 0.151 0.132 7.73 9.58
## 124 0.521 0.182 0.222 1.93 0.08
## 125 0.509 0.272 0.204 5.16 5.75
## 126 0.609 0.377 0.032 6.32 7.42
## 127 0.304 0.201 0.115 3.30 3.17
## 128 0.553 0.199 0.015 7.16 9.58
## 129 0.236 0.056 0.044 6.72 9.17
## 130 0.254 0.086 0.121 4.09 3.08
## 131 0.515 0.323 0.034 1.72 0.00
## 132 0.402 0.265 0.064 5.02 4.33
## 133 0.319 0.179 0.010 5.90 7.42
## 134 0.653 0.281 0.220 2.76 0.00
## 135 0.525 0.373 0.323 8.52 9.58
## 136 0.535 0.298 0.152 7.96 9.17
## 137 0.594 0.132 0.193 8.38 10.00
## 138 0.693 0.363 0.280 2.01 0.08
## 139 0.272 0.087 0.064 2.88 0.00
## 140 0.651 0.136 0.090 3.08 0.00
## 141 0.244 0.095 0.087 1.95 0.00
## 142 0.491 0.251 0.087 5.09 4.75
## 143 0.377 0.151 0.081 3.16 0.00
## FuncionamientoGob ParticipPol CulturaPol LibCivil Regimen
## 1 5.36 5.00 5.63 5.59 Hybrid regime
## 2 9.29 7.78 9.38 9.12 Full democracy
## 3 0.64 3.89 2.50 3.82 Authoritarian
## 4 5.36 4.44 5.00 7.65 Hybrid regime
## 5 2.86 5.00 5.00 4.12 Hybrid regime
## 6 5.36 6.11 6.25 8.24 Flawed democracy
## 7 5.36 6.11 3.13 5.59 Hybrid regime
## 8 8.93 7.78 8.75 10.00 Full democracy
## 9 7.86 8.33 6.88 8.82 Full democracy
## 10 3.21 2.78 3.75 3.53 Authoritarian
## 11 2.71 2.78 4.38 2.06 Authoritarian
## 12 6.07 6.11 4.38 5.00 Hybrid regime
## 13 2.00 2.78 4.38 2.35 Authoritarian
## 14 8.21 5.00 6.88 8.53 Flawed democracy
## 15 5.71 4.44 5.63 5.00 Hybrid regime
## 16 3.93 5.00 3.75 6.76 Hybrid regime
## 17 2.93 5.56 3.75 5.88 Hybrid regime
## 18 7.14 6.11 7.50 9.12 Flawed democracy
## 19 5.36 6.11 5.00 8.24 Flawed democracy
## 20 6.43 7.22 4.38 7.94 Flawed democracy
## 21 2.71 4.44 5.00 4.12 Hybrid regime
## 22 0.07 3.33 5.00 2.35 Authoritarian
## 23 4.64 3.33 5.63 3.24 Authoritarian
## 24 2.50 3.33 4.38 2.35 Authoritarian
## 25 9.64 7.78 9.38 9.71 Full democracy
## 26 0.00 1.11 1.88 2.35 Authoritarian
## 27 0.00 1.67 3.75 2.65 Authoritarian
## 28 8.57 5.00 8.13 9.12 Full democracy
## 29 4.29 3.33 2.50 1.18 Authoritarian
## 30 6.79 5.56 5.63 8.53 Flawed democracy
## 31 2.21 3.89 3.75 3.82 Authoritarian
## 32 7.50 6.67 7.50 9.41 Full democracy
## 33 6.07 5.56 5.00 7.06 Flawed democracy
## 34 6.43 6.67 6.88 8.82 Flawed democracy
## 35 6.79 6.67 6.88 8.53 Flawed democracy
## 36 9.29 8.33 9.38 9.12 Full democracy
## 37 5.36 6.11 5.00 7.06 Flawed democracy
## 38 5.36 6.11 4.38 7.06 Flawed democracy
## 39 3.21 3.33 3.75 2.35 Authoritarian
## 40 4.64 6.11 3.75 7.06 Flawed democracy
## 41 7.86 6.67 6.88 8.53 Flawed democracy
## 42 3.57 5.56 5.00 2.65 Authoritarian
## 43 8.93 8.89 8.75 9.71 Full democracy
## 44 7.86 7.78 6.88 8.53 Full democracy
## 45 2.21 4.44 5.00 3.82 Authoritarian
## 46 4.29 3.33 5.63 4.41 Hybrid regime
## 47 3.21 6.11 4.38 5.59 Hybrid regime
## 48 8.57 8.33 7.50 9.41 Full democracy
## 49 5.71 6.67 6.25 6.18 Flawed democracy
## 50 4.86 6.67 7.50 8.53 Flawed democracy
## 51 4.64 3.89 4.38 6.47 Hybrid regime
## 52 0.43 4.44 4.38 2.94 Authoritarian
## 53 2.07 3.89 6.25 5.88 Hybrid regime
## 54 4.29 4.44 4.38 6.18 Hybrid regime
## 55 4.36 6.11 7.50 8.53 Flawed democracy
## 56 6.07 5.00 6.25 7.06 Flawed democracy
## 57 9.29 8.89 10.00 9.71 Full democracy
## 58 6.79 6.67 5.63 6.76 Flawed democracy
## 59 7.14 6.11 5.63 5.59 Flawed democracy
## 60 2.86 4.44 3.13 1.47 Authoritarian
## 61 0.00 6.67 5.00 1.76 Authoritarian
## 62 7.86 8.33 10.00 10.00 Full democracy
## 63 7.86 8.89 7.50 5.88 Flawed democracy
## 64 6.07 7.78 6.25 7.94 Flawed democracy
## 65 2.86 3.33 5.63 4.12 Hybrid regime
## 66 7.14 4.44 6.25 8.24 Flawed democracy
## 67 8.21 6.67 7.50 8.82 Flawed democracy
## 68 4.29 3.89 4.38 3.53 Authoritarian
## 69 2.14 4.44 4.38 3.24 Authoritarian
## 70 5.71 6.67 5.63 4.41 Hybrid regime
## 71 4.29 3.89 4.38 3.53 Authoritarian
## 72 2.93 6.67 3.75 5.00 Hybrid regime
## 73 2.86 1.67 5.00 1.18 Authoritarian
## 74 6.07 6.11 6.88 8.82 Flawed democracy
## 75 1.50 6.67 5.00 4.71 Hybrid regime
## 76 4.50 6.67 5.63 6.76 Flawed democracy
## 77 3.07 5.56 5.63 5.59 Hybrid regime
## 78 0.00 2.78 4.38 2.94 Authoritarian
## 79 6.43 6.11 6.25 9.12 Flawed democracy
## 80 8.93 6.67 8.75 9.71 Full democracy
## 81 3.57 6.11 5.63 5.00 Hybrid regime
## 82 4.29 5.00 6.25 5.88 Hybrid regime
## 83 7.86 6.67 6.25 5.88 Flawed democracy
## 84 3.07 3.89 5.63 5.59 Hybrid regime
## 85 7.50 6.11 8.13 8.82 Flawed democracy
## 86 3.57 5.00 3.13 4.41 Authoritarian
## 87 8.21 5.56 8.75 9.41 Full democracy
## 88 6.07 7.22 3.13 6.18 Flawed democracy
## 89 4.64 6.11 4.38 7.06 Hybrid regime
## 90 5.71 5.56 5.00 7.06 Flawed democracy
## 91 5.36 6.11 4.38 6.76 Hybrid regime
## 92 4.64 5.56 5.63 4.41 Hybrid regime
## 93 2.14 5.00 5.00 3.53 Authoritarian
## 94 5.36 6.67 5.63 7.94 Flawed democracy
## 95 9.29 8.33 8.75 9.12 Full democracy
## 96 9.29 8.89 8.13 10.00 Full democracy
## 97 2.86 3.89 5.63 4.12 Authoritarian
## 98 1.14 3.33 4.38 4.71 Authoritarian
## 99 3.93 3.33 3.75 4.41 Hybrid regime
## 100 9.64 10.00 10.00 9.71 Full democracy
## 101 5.71 2.22 2.50 4.71 Hybrid regime
## 102 0.14 7.78 4.38 3.82 Authoritarian
## 103 6.07 6.67 5.00 7.94 Flawed democracy
## 104 5.71 5.00 4.38 7.35 Flawed democracy
## 105 5.00 5.56 5.63 7.65 Flawed democracy
## 106 5.36 7.22 4.38 7.06 Flawed democracy
## 107 6.07 6.11 4.38 7.35 Flawed democracy
## 108 7.86 6.11 7.50 9.12 Full democracy
## 109 5.71 5.56 4.38 7.65 Flawed democracy
## 110 1.79 5.00 2.50 4.12 Authoritarian
## 111 4.29 2.78 4.38 2.94 Authoritarian
## 112 2.86 2.22 3.13 1.47 Authoritarian
## 113 6.07 4.44 6.25 6.18 Hybrid regime
## 114 5.36 6.11 5.00 7.35 Flawed democracy
## 115 2.86 3.33 6.25 5.29 Hybrid regime
## 116 7.86 5.00 6.25 7.06 Flawed democracy
## 117 7.14 5.56 5.63 7.94 Flawed democracy
## 118 6.79 6.67 6.25 8.24 Flawed democracy
## 119 7.50 8.33 5.00 7.94 Flawed democracy
## 120 7.14 7.78 8.13 8.82 Full democracy
## 121 6.07 5.56 6.25 6.47 Flawed democracy
## 122 9.64 8.33 10.00 9.41 Full democracy
## 123 8.21 6.11 5.63 9.12 Flawed democracy
## 124 0.79 1.67 6.25 0.88 Authoritarian
## 125 5.00 5.00 5.63 4.41 Hybrid regime
## 126 5.36 6.11 6.25 6.47 Flawed democracy
## 127 1.79 3.33 5.00 3.24 Authoritarian
## 128 7.14 6.11 5.63 7.35 Flawed democracy
## 129 5.71 7.22 5.63 5.88 Flawed democracy
## 130 5.00 5.00 5.00 2.35 Hybrid regime
## 131 0.79 2.22 5.00 0.59 Authoritarian
## 132 3.57 4.44 6.88 5.88 Hybrid regime
## 133 2.71 6.67 6.25 6.47 Hybrid regime
## 134 3.93 2.22 5.00 2.65 Authoritarian
## 135 7.50 8.89 7.50 9.12 Full democracy
## 136 7.14 7.78 7.50 8.24 Flawed democracy
## 137 8.57 6.11 7.50 9.71 Full democracy
## 138 1.86 2.22 5.00 0.88 Authoritarian
## 139 1.79 5.00 4.38 3.24 Authoritarian
## 140 3.21 3.89 5.63 2.65 Authoritarian
## 141 0.00 3.89 5.00 0.88 Authoritarian
## 142 2.93 4.44 6.88 6.47 Hybrid regime
## 143 2.50 4.44 5.63 3.24 Authoritarian
## Region
## 1 Asia & Australasia
## 2 Western Europe
## 3 Asia & Australasia
## 4 Eastern Europe
## 5 Middle East & North Africa
## 6 Latin America
## 7 Eastern Europe
## 8 Asia & Australasia
## 9 Western Europe
## 10 Eastern Europe
## 11 Middle East & North Africa
## 12 Asia & Australasia
## 13 Eastern Europe
## 14 Western Europe
## 15 Sub-Saharan Africa
## 16 Latin America
## 17 Eastern Europe
## 18 Sub-Saharan Africa
## 19 Latin America
## 20 Eastern Europe
## 21 Sub-Saharan Africa
## 22 Sub-Saharan Africa
## 23 Asia & Australasia
## 24 Sub-Saharan Africa
## 25 North America
## 26 Sub-Saharan Africa
## 27 Sub-Saharan Africa
## 28 Latin America
## 29 Asia & Australasia
## 30 Latin America
## 31 Sub-Saharan Africa
## 32 Latin America
## 33 Eastern Europe
## 34 Western Europe
## 35 Eastern Europe
## 36 Western Europe
## 37 Latin America
## 38 Latin America
## 39 Middle East & North Africa
## 40 Latin America
## 41 Eastern Europe
## 42 Sub-Saharan Africa
## 43 Western Europe
## 44 Western Europe
## 45 Sub-Saharan Africa
## 46 Sub-Saharan Africa
## 47 Eastern Europe
## 48 Western Europe
## 49 Sub-Saharan Africa
## 50 Western Europe
## 51 Latin America
## 52 Sub-Saharan Africa
## 53 Latin America
## 54 Latin America
## 55 Asia & Australasia
## 56 Eastern Europe
## 57 Western Europe
## 58 Asia & Australasia
## 59 Asia & Australasia
## 60 Middle East & North Africa
## 61 Middle East & North Africa
## 62 Western Europe
## 63 Middle East & North Africa
## 64 Western Europe
## 65 Sub-Saharan Africa
## 66 Latin America
## 67 Asia & Australasia
## 68 Middle East & North Africa
## 69 Eastern Europe
## 70 Sub-Saharan Africa
## 71 Middle East & North Africa
## 72 Eastern Europe
## 73 Asia & Australasia
## 74 Eastern Europe
## 75 Middle East & North Africa
## 76 Sub-Saharan Africa
## 77 Sub-Saharan Africa
## 78 Middle East & North Africa
## 79 Eastern Europe
## 80 Western Europe
## 81 Sub-Saharan Africa
## 82 Sub-Saharan Africa
## 83 Asia & Australasia
## 84 Sub-Saharan Africa
## 85 Western Europe
## 86 Sub-Saharan Africa
## 87 Sub-Saharan Africa
## 88 Latin America
## 89 Eastern Europe
## 90 Asia & Australasia
## 91 Eastern Europe
## 92 Middle East & North Africa
## 93 Sub-Saharan Africa
## 94 Sub-Saharan Africa
## 95 Western Europe
## 96 Asia & Australasia
## 97 Latin America
## 98 Sub-Saharan Africa
## 99 Sub-Saharan Africa
## 100 Western Europe
## 101 Asia & Australasia
## 102 Middle East & North Africa
## 103 Latin America
## 104 Latin America
## 105 Latin America
## 106 Asia & Australasia
## 107 Eastern Europe
## 108 Western Europe
## 109 Eastern Europe
## 110 Eastern Europe
## 111 Sub-Saharan Africa
## 112 Middle East & North Africa
## 113 Sub-Saharan Africa
## 114 Eastern Europe
## 115 Sub-Saharan Africa
## 116 Asia & Australasia
## 117 Eastern Europe
## 118 Eastern Europe
## 119 Sub-Saharan Africa
## 120 Western Europe
## 121 Asia & Australasia
## 122 Western Europe
## 123 Asia & Australasia
## 124 Eastern Europe
## 125 Sub-Saharan Africa
## 126 Asia & Australasia
## 127 Sub-Saharan Africa
## 128 Latin America
## 129 Middle East & North Africa
## 130 Western Europe
## 131 Eastern Europe
## 132 Sub-Saharan Africa
## 133 Eastern Europe
## 134 Middle East & North Africa
## 135 Western Europe
## 136 North America
## 137 Latin America
## 138 Eastern Europe
## 139 Latin America
## 140 Asia & Australasia
## 141 Middle East & North Africa
## 142 Sub-Saharan Africa
## 143 Sub-Saharan Africa
library(ggplot2)
base1=ggplot(Indices,aes(x=PBI))
histNum= base1 + geom_histogram(bins=20)
histNum
base2=ggplot(Indices,aes(y=PBI))
box=base2 + geom_boxplot() + coord_flip()
box
summary(Indices$PBI)
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 0.000 0.566 0.932 0.876 1.181 1.537
library(ggplot2)
estadigrafos=round(as.vector(summary(Indices$PBI)),2)
box + scale_y_continuous(breaks = estadigrafos)
library(DescTools)
Skew(Indices$PBI,conf.level = 0.05)
## skew lwr.ci upr.ci
## -0.3852157 -0.3933646 -0.3770042
IQR(Indices$PBI)
## [1] 0.6145
q3=as.numeric(summary(Indices$PBI)[5])
umbral= q3+1.5*IQR(Indices$PBI)
umbral
## [1] 2.10225
Indices[Indices$PBI>umbral,]
## [1] Pais Libertad EconLib
## [4] PrensaLib Puntuacion PBI
## [7] AsistSocial ExpectVida LibDecis
## [10] Generosidad PercepCorrup PuntajeDemo
## [13] ProcesoELectoral FuncionamientoGob ParticipPol
## [16] CulturaPol LibCivil Regimen
## [19] Region
## <0 rows> (or 0-length row.names)
Gini(Indices$PBI,conf.level=0.95)
## gini lwr.ci upr.ci
## 0.2434390 0.2140211 0.2812437
library(gglorenz)
## Registered S3 methods overwritten by 'ineq':
## method from
## plot.Lc DescTools
## lines.Lc DescTools
base1 + gglorenz::stat_lorenz(color='red') +
geom_abline(linetype = "dashed") + coord_fixed() +
labs(x = "Paises",
y = "PBI per cápita",
title = "Relación PBI / Pais",
caption = "Fuente: Índice de Felicidad 2020")
Por el histograma podemos observar que existe asimetría negativa, esto lo podemos comprobar con el coefeciente de Skewness que al dar negatigo confirma que la asimetría es negativa. En el gráfico de boxplot veremos que no hay valores atípicos, y que la asimetría se da ligeramente a la izquierda, haciendo el análisis de los estadigrafos vemos que la mediana es mayor a la media lo que también confirma la asimetría hacia la izquierda. Para confirmar la inexistencia de valores atípicos calcularemos la distancia intercuantil, con lo que veremos que entre el primer y tercer intercuartil hay 0.6145, por lo que el 50% de valores centrales varian en esta cifra, el umbral del que tendrán que alejarse los valores para considerarse atípicos es 2.10225; sin embargo, ningún país se aleja de este umbral por lo que reafirmamos que no hay valores atípicos. Finalmente, gracias al Gini y la curva de Lorenz veremos que el PBI per cápita está distribuido casi de manera igualmente, con una ligera acumulación.
f2=formula(PBI ~ Regimen)
aggregate(f2, Indices,mean)
## Regimen PBI
## 1 Authoritarian 0.6943846
## 2 Flawed democracy 1.0490208
## 3 Full democracy 1.2749091
## 4 Hybrid regime 0.5817353
library(ggpubr)
## Loading required package: magrittr
ggqqplot(data=Indices,x="PBI") + facet_grid(. ~ Regimen)
normalidadTest=function(x) {y =shapiro.test(x);
c(y$statistic, y$p.value)}
resultado= aggregate(f2, Indices,
FUN = normalidadTest)
library(knitr)
shapiroTest=as.data.frame(resultado[,2])
names(shapiroTest)=c("SW_Statistic","Probabilidad")
kable(cbind(resultado[1],shapiroTest))
| Regimen | SW_Statistic | Probabilidad |
|---|---|---|
| Authoritarian | 0.9661835 | 0.2847239 |
| Flawed democracy | 0.9786240 | 0.5227289 |
| Full democracy | 0.9487639 | 0.2984501 |
| Hybrid regime | 0.9650767 | 0.3396692 |
summary(aov(f2, data=Indices))
## Df Sum Sq Mean Sq F value Pr(>F)
## Regimen 3 9.168 3.0561 40.24 <2e-16 ***
## Residuals 139 10.556 0.0759
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
library(ggpubr)
ggerrorplot(Indices, x = "Regimen",
y = "PBI",
desc_stat = "mean_ci"
)
Tomaremos a la variable Regimen, que es una varible categórica policotómica. La H0 es que el PBI per cápita no se diferencia entre los regímenes. Tenemos que demostrar si es correcto inferir que en las democracias plenas (Full Democracy) el PBI per cápita es mayor. Primero graficaremos y aplicaremos el test de Shapiro Wilk para determinar si es paramétrico o no paramétrico, finalmente señalaremos que es paramétrico al no ser ninguna de las probabilidades de los regímenes menor a 0.05. La prueba F de Schnedecor señalará que la H0 no es significativa y los PBI per cápita se diferencia entre ellos, graficando podemos ver que la democracia plena (Full Democracy) se diferencia de las demás.
Indices=Indices[complete.cases(Indices),]
summary(Indices)
## Pais Libertad EconLib
## Length:143 free :54 free : 6
## Class :character n/a : 0 moderately free:47
## Mode :character not free :33 mostly free :28
## partly free:56 mostly unfree :49
## n/a : 4
## repressed : 9
##
## PrensaLib Puntuacion PBI
## difficult situation :39 Min. :2.567 Min. :0.000
## good situation :14 1st Qu.:4.740 1st Qu.:0.566
## n/a : 0 Median :5.542 Median :0.932
## noticeable problems :50 Mean :5.513 Mean :0.876
## satisfactory situation:25 3rd Qu.:6.269 3rd Qu.:1.181
## very serious situation:15 Max. :7.809 Max. :1.537
##
## AsistSocial ExpectVida LibDecis Generosidad
## Min. :0.000 Min. :0.0000 Min. :0.0000 Min. :0.0000
## 1st Qu.:0.987 1st Qu.:0.5205 1st Qu.:0.3840 1st Qu.:0.1135
## Median :1.226 Median :0.7630 Median :0.4870 Median :0.1710
## Mean :1.164 Mean :0.6987 Mean :0.4682 Mean :0.1864
## 3rd Qu.:1.391 3rd Qu.:0.8620 3rd Qu.:0.5805 3rd Qu.:0.2565
## Max. :1.548 Max. :1.1380 Max. :0.6930 Max. :0.5430
##
## PercepCorrup PuntajeDemo ProcesoELectoral FuncionamientoGob
## Min. :0.0000 Min. :1.320 Min. : 0.000 Min. :0.000
## 1st Qu.:0.0550 1st Qu.:3.905 1st Qu.: 3.460 1st Qu.:2.930
## Median :0.0980 Median :5.890 Median : 7.420 Median :5.360
## Mean :0.1325 Mean :5.668 Mean : 6.162 Mean :5.001
## 3rd Qu.:0.1630 3rd Qu.:7.460 3rd Qu.: 9.170 3rd Qu.:7.140
## Max. :0.5330 Max. :9.870 Max. :10.000 Max. :9.640
##
## ParticipPol CulturaPol LibCivil
## Min. : 1.110 Min. : 1.880 Length:143
## 1st Qu.: 4.440 1st Qu.: 4.380 Class :character
## Median : 5.560 Median : 5.630 Mode :character
## Mean : 5.478 Mean : 5.676
## 3rd Qu.: 6.670 3rd Qu.: 6.565
## Max. :10.000 Max. :10.000
##
## Regimen Region
## Authoritarian :39 Asia & Australasia :21
## Flawed democracy:48 Eastern Europe :27
## Full democracy :22 Latin America :21
## Hybrid regime :34 Middle East & North Africa:16
## North America : 2
## Sub-Saharan Africa :35
## Western Europe :21
levels(Indices$Libertad)[levels(Indices$Libertad)=='n/a'] = NA
levels(Indices$EconLib)[levels(Indices$EconLib)=='n/a'] = NA
levels(Indices$PrensaLib)[levels(Indices$PrensaLib)=='n/a'] = NA
levels(Indices$Libertad)[levels(Indices$Libertad)==''] = NA
levels(Indices$EconLib)[levels(Indices$EconLib)==''] = NA
levels(Indices$PrensaLib)[levels(Indices$PrensaLib)==''] = NA
summary(Indices)
## Pais Libertad EconLib
## Length:143 free :54 free : 6
## Class :character not free :33 moderately free:47
## Mode :character partly free:56 mostly free :28
## mostly unfree :49
## repressed : 9
## NA's : 4
##
## PrensaLib Puntuacion PBI
## difficult situation :39 Min. :2.567 Min. :0.000
## good situation :14 1st Qu.:4.740 1st Qu.:0.566
## noticeable problems :50 Median :5.542 Median :0.932
## satisfactory situation:25 Mean :5.513 Mean :0.876
## very serious situation:15 3rd Qu.:6.269 3rd Qu.:1.181
## Max. :7.809 Max. :1.537
##
## AsistSocial ExpectVida LibDecis Generosidad
## Min. :0.000 Min. :0.0000 Min. :0.0000 Min. :0.0000
## 1st Qu.:0.987 1st Qu.:0.5205 1st Qu.:0.3840 1st Qu.:0.1135
## Median :1.226 Median :0.7630 Median :0.4870 Median :0.1710
## Mean :1.164 Mean :0.6987 Mean :0.4682 Mean :0.1864
## 3rd Qu.:1.391 3rd Qu.:0.8620 3rd Qu.:0.5805 3rd Qu.:0.2565
## Max. :1.548 Max. :1.1380 Max. :0.6930 Max. :0.5430
##
## PercepCorrup PuntajeDemo ProcesoELectoral FuncionamientoGob
## Min. :0.0000 Min. :1.320 Min. : 0.000 Min. :0.000
## 1st Qu.:0.0550 1st Qu.:3.905 1st Qu.: 3.460 1st Qu.:2.930
## Median :0.0980 Median :5.890 Median : 7.420 Median :5.360
## Mean :0.1325 Mean :5.668 Mean : 6.162 Mean :5.001
## 3rd Qu.:0.1630 3rd Qu.:7.460 3rd Qu.: 9.170 3rd Qu.:7.140
## Max. :0.5330 Max. :9.870 Max. :10.000 Max. :9.640
##
## ParticipPol CulturaPol LibCivil
## Min. : 1.110 Min. : 1.880 Length:143
## 1st Qu.: 4.440 1st Qu.: 4.380 Class :character
## Median : 5.560 Median : 5.630 Mode :character
## Mean : 5.478 Mean : 5.676
## 3rd Qu.: 6.670 3rd Qu.: 6.565
## Max. :10.000 Max. :10.000
##
## Regimen Region
## Authoritarian :39 Asia & Australasia :21
## Flawed democracy:48 Eastern Europe :27
## Full democracy :22 Latin America :21
## Hybrid regime :34 Middle East & North Africa:16
## North America : 2
## Sub-Saharan Africa :35
## Western Europe :21
shapiro.test(Indices$PBI)
##
## Shapiro-Wilk normality test
##
## data: Indices$PBI
## W = 0.96047, p-value = 0.0003924
library(DescTools)
Skew(Indices$PBI)
## [1] -0.3852157
Ha=formula(PBI ~ Regimen)
aggregate(Ha, data=Indices,median)
## Regimen PBI
## 1 Authoritarian 0.6970
## 2 Flawed democracy 1.0725
## 3 Full democracy 1.3060
## 4 Hybrid regime 0.5465
base=ggplot(data=Indices, aes(x=Regimen,y=PBI))
base+geom_boxplot() + coord_flip()
Hb=formula(PBI ~ Libertad)
aggregate(Hb, data=Indices,median)
## Libertad PBI
## 1 free 1.202
## 2 not free 0.770
## 3 partly free 0.677
base=ggplot(data=Indices, aes(x=Libertad,y=PBI))
base+geom_boxplot() + coord_flip()
names(Indices)
## [1] "Pais" "Libertad" "EconLib"
## [4] "PrensaLib" "Puntuacion" "PBI"
## [7] "AsistSocial" "ExpectVida" "LibDecis"
## [10] "Generosidad" "PercepCorrup" "PuntajeDemo"
## [13] "ProcesoELectoral" "FuncionamientoGob" "ParticipPol"
## [16] "CulturaPol" "LibCivil" "Regimen"
## [19] "Region"
Indices$Pais=as.character(Indices$Pais)
str(Indices)
## 'data.frame': 143 obs. of 19 variables:
## $ Pais : chr " Nepal" " Switzerland" " Afghanistan" " Albania" ...
## $ Libertad : Ord.factor w/ 3 levels "free"<"not free"<..: 3 1 2 3 2 1 3 1 1 2 ...
## $ EconLib : Ord.factor w/ 5 levels "free"<"moderately free"<..: 4 1 4 2 5 4 3 1 3 2 ...
## $ PrensaLib : Ord.factor w/ 5 levels "difficult situation"<..: 1 2 1 3 1 3 3 4 4 5 ...
## $ Puntuacion : num 5.14 7.56 2.57 4.88 5 ...
## $ PBI : num 0.444 1.391 0.301 0.907 0.944 ...
## $ AsistSocial : num 1.101 1.472 0.356 0.83 1.143 ...
## $ ExpectVida : num 0.669 1.041 0.266 0.846 0.745 ...
## $ LibDecis : num 0.481 0.629 0 0.462 0.084 0.521 0.378 0.622 0.603 0.468 ...
## $ Generosidad : num 0.301 0.269 0.135 0.171 0.119 0.07 0.107 0.325 0.256 0.04 ...
## $ PercepCorrup : num 0.128 0.408 0.001 0.025 0.129 0.06 0.105 0.336 0.281 0.247 ...
## $ PuntajeDemo : num 5.28 9.03 2.85 5.89 4.01 7.02 5.54 9.09 8.29 2.75 ...
## $ ProcesoELectoral : num 4.83 9.58 3.42 7 3.08 9.17 7.5 10 9.58 0.5 ...
## $ FuncionamientoGob: num 5.36 9.29 0.64 5.36 2.86 5.36 5.36 8.93 7.86 3.21 ...
## $ ParticipPol : num 5 7.78 3.89 4.44 5 6.11 6.11 7.78 8.33 2.78 ...
## $ CulturaPol : num 5.63 9.38 2.5 5 5 6.25 3.13 8.75 6.88 3.75 ...
## $ LibCivil : chr "5.59" "9.12" "3.82" "7.65" ...
## $ Regimen : Ord.factor w/ 4 levels "Authoritarian"<..: 4 3 1 4 4 2 4 3 3 1 ...
## $ Region : Factor w/ 7 levels "Asia & Australasia",..: 1 7 1 2 4 3 2 1 7 2 ...
RegresionPBI=lm(PBI~.,data=Indices)
summary(RegresionPBI)
##
## Call:
## lm(formula = PBI ~ ., data = Indices)
##
## Residuals:
## ALL 139 residuals are 0: no residual degrees of freedom!
##
## Coefficients: (61 not defined because of singularities)
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 0.444 NA NA NA
## Pais Switzerland 0.947 NA NA NA
## Pais Afghanistan -0.143 NA NA NA
## Pais Albania 0.463 NA NA NA
## Pais Algeria 0.500 NA NA NA
## Pais Argentina 0.584 NA NA NA
## Pais Armenia 0.364 NA NA NA
## Pais Australia 0.866 NA NA NA
## Pais Austria 0.873 NA NA NA
## Pais Azerbaijan 0.546 NA NA NA
## Pais Bahrain 0.853 NA NA NA
## Pais Bangladesh 0.112 NA NA NA
## Pais Belarus 0.575 NA NA NA
## Pais Belgium 0.852 NA NA NA
## Pais Benin -0.078 NA NA NA
## Pais Bolivia 0.287 NA NA NA
## Pais Bosnia and Herzegovina 0.474 NA NA NA
## Pais Botswana 0.554 NA NA NA
## Pais Brazil 0.509 NA NA NA
## Pais Bulgaria 0.603 NA NA NA
## Pais Burkina Faso -0.142 NA NA NA
## Pais Burundi -0.444 NA NA NA
## Pais Cambodia 0.101 NA NA NA
## Pais Cameroon 0.060 NA NA NA
## Pais Canada 0.858 NA NA NA
## Pais Central African Republic -0.403 NA NA NA
## Pais Chad -0.142 NA NA NA
## Pais Chile 0.653 NA NA NA
## Pais China 0.547 NA NA NA
## Pais Colombia 0.488 NA NA NA
## Pais Comoros -0.028 NA NA NA
## Pais Costa Rica 0.537 NA NA NA
## Pais Croatia 0.665 NA NA NA
## Pais Cyprus 0.769 NA NA NA
## Pais Czech Republic 0.768 NA NA NA
## Pais Denmark 0.883 NA NA NA
## Pais Dominican Republic 0.539 NA NA NA
## Pais Ecuador 0.409 NA NA NA
## Pais Egypt 0.431 NA NA NA
## Pais El Salvador 0.305 NA NA NA
## Pais Estonia 0.748 NA NA NA
## Pais Ethiopia -0.129 NA NA NA
## Pais Finland 0.841 NA NA NA
## Pais France 0.824 NA NA NA
## Pais Gabon 0.544 NA NA NA
## Pais Gambia -0.187 NA NA NA
## Pais Georgia 0.403 NA NA NA
## Pais Germany 0.870 NA NA NA
## Pais Ghana 0.132 NA NA NA
## Pais Greece 0.684 NA NA NA
## Pais Guatemala 0.310 NA NA NA
## Pais Guinea -0.054 NA NA NA
## Pais Haiti -0.159 NA NA NA
## Pais Honduras 0.155 NA NA NA
## Pais Hong Kong 0.933 NA NA NA
## Pais Hungary 0.720 NA NA NA
## Pais Iceland 0.883 NA NA NA
## Pais India 0.287 NA NA NA
## Pais Indonesia 0.448 NA NA NA
## Pais Iran 0.585 NA NA NA
## Pais Ireland 1.003 NA NA NA
## Pais Israel 0.772 NA NA NA
## Pais Italy 0.792 NA NA NA
## Pais Ivory Coast 0.093 NA NA NA
## Pais Jamaica 0.335 NA NA NA
## Pais Japan 0.823 NA NA NA
## Pais Jordan 0.341 NA NA NA
## Pais Kazakhstan 0.679 NA NA NA
## Pais Kenya 0.032 NA NA NA
## Pais Kuwait 0.981 NA NA NA
## Pais Kyrgyzstan 0.069 NA NA NA
## Pais Laos 0.271 NA NA NA
## Pais Latvia 0.697 NA NA NA
## Pais Lebanon 0.445 NA NA NA
## Pais Lesotho 0.011 NA NA NA
## Pais Liberia -0.270 NA NA NA
## Pais Lithuania 0.750 NA NA NA
## Pais Luxembourg 1.093 NA NA NA
## Pais Madagascar -0.199 NA NA NA
## Pais Malawi -0.267 NA NA NA
## Pais Malaysia 0.724 NA NA NA
## Pais Mali -0.092 NA NA NA
## Pais Malta 0.809 NA NA NA
## Pais Mauritania 0.096 NA NA NA
## Pais Mauritius 0.630 NA NA NA
## Pais Mexico 0.580 NA NA NA
## Pais Moldova 0.264 NA NA NA
## Pais Mongolia 0.461 NA NA NA
## Pais Montenegro 0.566 NA NA NA
## Pais Morocco 0.315 NA NA NA
## Pais Mozambique -0.265 NA NA NA
## Pais Namibia 0.396 NA NA NA
## Pais Netherlands 0.895 NA NA NA
## Pais New Zealand 0.798 NA NA NA
## Pais Nicaragua 0.176 NA NA NA
## Pais Niger -0.336 NA NA NA
## Pais Nigeria 0.202 NA NA NA
## Pais Norway 0.980 NA NA NA
## Pais Pakistan 0.173 NA NA NA
## Pais Panama 0.654 NA NA NA
## Pais Paraguay 0.454 NA NA NA
## Pais Peru 0.475 NA NA NA
## Pais Philippines 0.331 NA NA NA
## Pais Poland 0.725 NA NA NA
## Pais Portugal 0.725 NA NA NA
## Pais Romania 0.676 NA NA NA
## Pais Russia 0.683 NA NA NA
## Pais Rwanda -0.101 NA NA NA
## Pais Saudi Arabia 0.890 NA NA NA
## Pais Senegal 0.060 NA NA NA
## Pais Serbia 0.544 NA NA NA
## Pais Sierra Leone -0.203 NA NA NA
## Pais Singapore 1.076 NA NA NA
## Pais Slovakia 0.751 NA NA NA
## Pais Slovenia 0.765 NA NA NA
## Pais South Africa 0.458 NA NA NA
## Pais Spain 0.787 NA NA NA
## Pais Sri Lanka 0.454 NA NA NA
## Pais Sweden 0.878 NA NA NA
## Pais Taiwan 0.883 NA NA NA
## Pais Tajikistan 0.031 NA NA NA
## Pais Tanzania 0.013 NA NA NA
## Pais Thailand 0.563 NA NA NA
## Pais Togo -0.176 NA NA NA
## Pais Trinidad and Tobago 0.724 NA NA NA
## Pais Tunisia 0.431 NA NA NA
## Pais Turkey 0.683 NA NA NA
## Pais Turkmenistan 0.565 NA NA NA
## Pais Uganda -0.132 NA NA NA
## Pais Ukraine 0.336 NA NA NA
## Pais United Arab Emirates 0.987 NA NA NA
## Pais United Kingdom 0.829 NA NA NA
## Pais United States 0.930 NA NA NA
## Pais Uruguay 0.627 NA NA NA
## Pais Uzbekistan 0.253 NA NA NA
## Pais Venezuela 0.326 NA NA NA
## Pais Vietnam 0.274 NA NA NA
## Pais Zambia 0.093 NA NA NA
## Pais Zimbabwe -0.018 NA NA NA
## Libertad.L NA NA NA NA
## Libertad.Q NA NA NA NA
## EconLib.L NA NA NA NA
## EconLib.Q NA NA NA NA
## EconLib.C NA NA NA NA
## EconLib^4 NA NA NA NA
## PrensaLib.L NA NA NA NA
## PrensaLib.Q NA NA NA NA
## PrensaLib.C NA NA NA NA
## PrensaLib^4 NA NA NA NA
## Puntuacion NA NA NA NA
## AsistSocial NA NA NA NA
## ExpectVida NA NA NA NA
## LibDecis NA NA NA NA
## Generosidad NA NA NA NA
## PercepCorrup NA NA NA NA
## PuntajeDemo NA NA NA NA
## ProcesoELectoral NA NA NA NA
## FuncionamientoGob NA NA NA NA
## ParticipPol NA NA NA NA
## CulturaPol NA NA NA NA
## LibCivil0.88 NA NA NA NA
## LibCivil1.18 NA NA NA NA
## LibCivil1.47 NA NA NA NA
## LibCivil10.00 NA NA NA NA
## LibCivil2.06 NA NA NA NA
## LibCivil2.35 NA NA NA NA
## LibCivil2.65 NA NA NA NA
## LibCivil2.94 NA NA NA NA
## LibCivil3.24 NA NA NA NA
## LibCivil3.53 NA NA NA NA
## LibCivil3.82 NA NA NA NA
## LibCivil4.12 NA NA NA NA
## LibCivil4.41 NA NA NA NA
## LibCivil4.71 NA NA NA NA
## LibCivil5.00 NA NA NA NA
## LibCivil5.29 NA NA NA NA
## LibCivil5.59 NA NA NA NA
## LibCivil5.88 NA NA NA NA
## LibCivil6.18 NA NA NA NA
## LibCivil6.47 NA NA NA NA
## LibCivil6.76 NA NA NA NA
## LibCivil7.06 NA NA NA NA
## LibCivil7.35 NA NA NA NA
## LibCivil7.65 NA NA NA NA
## LibCivil7.94 NA NA NA NA
## LibCivil8.24 NA NA NA NA
## LibCivil8.53 NA NA NA NA
## LibCivil8.82 NA NA NA NA
## LibCivil9.12 NA NA NA NA
## LibCivil9.41 NA NA NA NA
## LibCivil9.71 NA NA NA NA
## Regimen.L NA NA NA NA
## Regimen.Q NA NA NA NA
## Regimen.C NA NA NA NA
## RegionEastern Europe NA NA NA NA
## RegionLatin America NA NA NA NA
## RegionMiddle East & North Africa NA NA NA NA
## RegionNorth America NA NA NA NA
## RegionSub-Saharan Africa NA NA NA NA
## RegionWestern Europe NA NA NA NA
##
## Residual standard error: NaN on 0 degrees of freedom
## (4 observations deleted due to missingness)
## Multiple R-squared: 1, Adjusted R-squared: NaN
## F-statistic: NaN on 138 and 0 DF, p-value: NA
Tuve problemas haciendo el ejercicio de regresión, pero por la observación de los gráficos boxplots de ambas variables independientes con la dependiente sí podemos decir que hay un mayor PBI per cápita en los países con maoyr nivel de democracia y libertad, aunque presentan excepciones, como lo demuestran los valores atípicos.