INSTALACION DE PAQUETES

#install.packages("DescTools")
#install.packages("e1071")
library(rio)
library(DescTools)
library(e1071)

PASO 1

library(rio)
library(DescTools)
library(e1071)
A=import("state_democracy_final.xlsx") #IMPORTAR EL EXCEL
A
##                              Country Year  Rank Total C1: Security Apparatus
## 1                        AFGHANISTAN 2021   9th 102.1                   10.0
## 2                            ALBANIA 2021 119th  59.0                    4.8
## 3                            ALGERIA 2021  74th  73.6                    6.0
## 4                             ANGOLA 2021  34th  89.0                    7.2
## 5                          ARGENTINA 2021 137th  50.1                    4.9
## 6                            ARMENIA 2021  91st  69.8                    5.7
## 7                          AUSTRALIA 2021 170th  21.8                    2.7
## 8                            AUSTRIA 2021 166th  26.1                    1.6
## 9                         AZERBAIJAN 2021  71st  75.1                    6.4
## 10                           BAHRAIN 2021 104th  66.7                    5.9
## 11                        BANGLADESH 2021  39th  85.0                    7.0
## 12                           BELARUS 2021  98th  68.0                    5.6
## 13                           BELGIUM 2021 162nd  31.0                    2.6
## 14                             BENIN 2021  78th  72.8                    5.3
## 15                            BHUTAN 2021  96th  68.3                    3.3
## 16                           BOLIVIA 2021  73rd  74.9                    5.9
## 17            BOSNIA AND HERZEGOVINA 2021  77th  72.9                    5.0
## 18                          BOTSWANA 2021 122nd  57.0                    3.4
## 19                            BRAZIL 2021  70th  75.8                    6.8
## 20                          BULGARIA 2021 133rd  51.6                    4.3
## 21                      BURKINA FASO 2021  36th  87.1                    9.0
## 22                           BURUNDI 2021  16th  97.1                    8.0
## 23                          CAMBODIA 2021  54th  80.6                    6.4
## 24                          CAMEROON 2021  15th  97.2                    8.3
## 25                            CANADA 2021 171st  21.7                    2.8
## 26                        CAPE VERDE 2021 110th  64.2                    4.8
## 27          CENTRAL AFRICAN REPUBLIC 2021   6th 107.0                    8.0
## 28                              CHAD 2021   7th 105.8                    8.9
## 29                             CHILE 2021 144th  44.1                    3.8
## 30                             CHINA 2021  95th  68.9                    5.5
## 31                          COLOMBIA 2021  61st  79.3                    6.9
## 32                           COMOROS 2021  47th  82.5                    6.2
## 33                        COSTA RICA 2021 149th  42.5                    3.5
## 34                           CROATIA 2021 138th  49.8                    2.6
## 35                              CUBA 2021 118th  59.5                    4.0
## 36                            CYPRUS 2021 121st  57.4                    3.5
## 37                    CZECH REPUBLIC 2021 153rd  39.3                    2.6
## 38  DEMOCRATIC REPUBLIC OF THE CONGO 2021   5th 108.4                    8.6
## 39                           DENMARK 2021 175th  18.8                    1.7
## 40                          DJIBOUTI 2021  49th  82.4                    5.3
## 41                DOMINICAN REPUBLIC 2021 107th  64.7                    6.1
## 42                           ECUADOR 2021  86th  71.2                    5.9
## 43                             EGYPT 2021  39th  85.0                    7.6
## 44                       EL SALVADOR 2021  82nd  71.6                    6.6
## 45                 EQUATORIAL GUINEA 2021  44th  84.1                    5.9
## 46                           ERITREA 2021  17th  97.0                    6.2
## 47                           ESTONIA 2021 152nd  39.5                    2.3
## 48                          ESWATINI 2021  47th  82.5                    5.1
## 49                          ETHIOPIA 2021  11th  99.0                    8.4
## 50                              FIJI 2021  88th  70.4                    6.5
## 51                           FINLAND 2021 179th  16.2                    2.5
## 52                            FRANCE 2021 159th  32.5                    3.5
## 53                             GABON 2021 101st  67.4                    4.8
## 54                            GAMBIA 2021  55th  80.5                    5.7
## 55                           GEORGIA 2021  79th  72.6                    5.6
## 56                           GERMANY 2021 167th  24.8                    2.3
## 57                             GHANA 2021 113th  63.9                    4.6
## 58                            GREECE 2021 128th  54.5                    3.9
## 59                         GUATEMALA 2021  59th  79.4                    6.8
## 60                            GUINEA 2021  14th  97.4                    8.0
## 61                     GUINEA-BISSAU 2021  27th  92.0                    7.7
## 62                            GUYANA 2021 106th  66.1                    7.1
## 63                             HAITI 2021  13th  97.5                    6.6
## 64                          HONDURAS 2021  59th  79.4                    7.0
## 65                           HUNGARY 2021 134th  51.1                    2.4
## 66                           ICELAND 2021 177th  18.0                    0.7
## 67                             INDIA 2021  66th  77.0                    6.6
## 68                         INDONESIA 2021  99th  67.6                    5.8
## 69                              IRAN 2021  43rd  84.5                    6.9
## 70                              IRAQ 2021  20th  96.2                    7.9
## 71                           IRELAND 2021 169th  22.2                    2.7
## 72                            ISRAEL 2021 148th  43.0                    2.4
## 73                             ITALY 2021 141st  45.2                    5.1
## 74                           JAMAICA 2021 116th  61.2                    6.6
## 75                             JAPAN 2021 161st  32.2                    1.8
## 76                            JORDAN 2021  67th  76.8                    5.2
## 77                        KAZAKHSTAN 2021 116th  61.2                    4.0
## 78                             KENYA 2021  32nd  89.2                    7.4
## 79                            KUWAIT 2021 129th  52.9                    3.0
## 80                        KYRGYZSTAN 2021  68th  76.4                    6.2
## 81                              LAOS 2021  69th  76.0                    4.4
## 82                            LATVIA 2021 146th  44.0                    2.6
## 83                           LEBANON 2021  34th  89.0                    7.5
## 84                           LESOTHO 2021  64th  77.9                    6.4
## 85                           LIBERIA 2021  31st  89.5                    6.6
## 86                             LIBYA 2021  17th  97.0                    9.6
## 87                         LITHUANIA 2021 155th  38.7                    2.8
## 88                        LUXEMBOURG 2021 173rd  21.1                    0.7
## 89                        MADAGASCAR 2021  58th  79.5                    6.3
## 90                            MALAWI 2021  46th  83.2                    4.8
## 91                          MALAYSIA 2021 123rd  56.9                    5.4
## 92                              MALI 2021  19th  96.6                    9.6
## 93                             MALTA 2021 157th  36.2                    2.4
## 94                        MAURITANIA 2021  33rd  89.1                    6.3
## 95                         MAURITIUS 2021 156th  38.1                    1.2
## 96                            MEXICO 2021  90th  69.9                    8.5
## 97                           MOLDOVA 2021 103rd  67.0                    5.1
## 98                          MONGOLIA 2021 132nd  52.3                    2.9
## 99                        MONTENEGRO 2021 120th  58.5                    4.6
## 100                          MOROCCO 2021  83rd  71.5                    4.9
## 101                       MOZAMBIQUE 2021  22nd  93.9                    7.3
## 102                          MYANMAR 2021  23rd  93.8                    8.9
## 103                          NAMIBIA 2021 109th  64.3                    4.8
## 104                            NEPAL 2021  51st  82.2                    5.3
## 105                      NETHERLANDS 2021 168th  24.1                    2.2
## 106                      NEW ZEALAND 2021 176th  18.4                    1.4
## 107                        NICARAGUA 2021  65th  77.1                    5.8
## 108                            NIGER 2021  21st  96.0                    8.9
## 109                          NIGERIA 2021  12th  98.0                    8.8
## 110                      NORTH KOREA 2021  30th  90.0                    8.0
## 111                  NORTH MACEDONIA 2021 108th  64.5                    4.7
## 112                           NORWAY 2021 178th  16.6                    1.8
## 113                             OMAN 2021 136th  50.4                    3.0
## 114                         PAKISTAN 2021  29th  90.5                    7.9
## 115                        PALESTINE 2021  37th  86.0                    6.0
## 116                           PANAMA 2021 139th  48.7                    5.2
## 117                 PAPUA NEW GUINEA 2021  52nd  80.9                    6.7
## 118                         PARAGUAY 2021 105th  66.4                    6.3
## 119                             PERU 2021  85th  71.4                    6.1
## 120                      PHILIPPINES 2021  49th  82.4                    9.3
## 121                           POLAND 2021 147th  43.1                    2.4
## 122                         PORTUGAL 2021 164th  26.8                    0.5
## 123                            QATAR 2021 144th  44.1                    1.4
## 124            REPUBLIC OF THE CONGO 2021  26th  92.4                    7.0
## 125                          ROMANIA 2021 135th  51.0                    2.1
## 126                           RUSSIA 2021  74th  73.6                    7.7
## 127                           RWANDA 2021  39th  85.0                    5.8
## 128                     SAUDI ARABIA 2021  93rd  69.7                    5.7
## 129                          SENEGAL 2021  76th  73.4                    5.1
## 130                           SERBIA 2021 101st  67.4                    4.5
## 131                     SIERRA LEONE 2021  45th  83.4                    3.8
## 132                        SINGAPORE 2021 165th  26.6                    0.7
## 133                         SLOVAKIA 2021 154th  39.0                    1.2
## 134                         SLOVENIA 2021 163rd  28.2                    0.5
## 135                     SOUTH AFRICA 2021  89th  70.0                    6.4
## 136                      SOUTH KOREA 2021 159th  32.5                    2.1
## 137                            SPAIN 2021 142nd  44.8                    3.4
## 138                        SRI LANKA 2021  55th  80.5                    6.8
## 139                            SUDAN 2021   8th 105.2                    8.1
## 140                         SURINAME 2021 115th  61.5                    4.0
## 141                           SWEDEN 2021 172nd  21.4                    2.7
## 142                      SWITZERLAND 2021 174th  19.9                    1.6
## 143                            SYRIA 2021   3rd 110.7                    9.6
## 144                       TAJIKISTAN 2021  71st  75.1                    5.7
## 145                         TANZANIA 2021  61st  79.3                    5.2
## 146                         THAILAND 2021  87th  70.9                    8.2
## 147                      TIMOR-LESTE 2021  52nd  80.9                    6.2
## 148                             TOGO 2021  38th  85.1                    6.4
## 149              TRINIDAD AND TOBAGO 2021 129th  52.9                    6.9
## 150                          TUNISIA 2021  94th  69.2                    7.1
## 151                           TURKEY 2021  57th  79.7                    7.2
## 152                     TURKMENISTAN 2021  97th  68.2                    5.1
## 153                           UGANDA 2021  24th  92.9                    6.9
## 154                          UKRAINE 2021  91st  69.8                    6.7
## 155             UNITED ARAB EMIRATES 2021 151st  40.3                    2.5
## 156                   UNITED KINGDOM 2021 150th  41.5                    3.5
## 157                    UNITED STATES 2021 143rd  44.6                    4.3
## 158                          URUGUAY 2021 158th  35.9                    4.2
## 159                       UZBEKISTAN 2021  80th  72.0                    6.2
## 160                        VENEZUELA 2021  25th  92.6                    7.3
## 161                          VIETNAM 2021 114th  63.3                    3.9
## 162                            YEMEN 2021   1st 111.7                    9.4
## 163                           ZAMBIA 2021  42nd  84.9                    4.5
## 164                         ZIMBABWE 2021  10th  99.1                    8.6
##     C2: Factionalized Elites C3: Group Grievance E1: Economy
## 1                        8.6                 7.2         9.2
## 2                        6.2                 4.1         6.4
## 3                        7.5                 7.2         6.8
## 4                        7.2                 8.1         8.4
## 5                        2.8                 3.8         7.1
## 6                        7.0                 5.3         6.6
## 7                        1.7                 3.1         1.6
## 8                        3.2                 3.9         1.8
## 9                        7.9                 6.1         4.7
## 10                       7.6                 9.6         4.1
## 11                       9.3                 8.6         5.5
## 12                       8.8                 5.9         5.1
## 13                       4.4                 4.1         4.6
## 14                       6.7                 2.6         6.7
## 15                       7.5                 9.1         5.0
## 16                       8.5                 5.6         5.9
## 17                       8.7                 6.6         6.4
## 18                       3.3                 3.9         6.6
## 19                       6.5                 7.7         6.4
## 20                       5.3                 4.2         5.2
## 21                       7.8                 4.5         7.0
## 22                       8.2                 7.3         8.8
## 23                       8.3                 6.1         5.2
## 24                       9.3                 8.7         7.0
## 25                       2.5                 2.2         2.0
## 26                       5.5                 2.9         6.5
## 27                       9.7                 8.1         8.5
## 28                       9.5                 8.0         8.6
## 29                       2.2                 3.2         4.2
## 30                       7.2                 7.1         3.7
## 31                       7.6                 7.5         6.0
## 32                       8.0                 4.2         7.6
## 33                       3.8                 3.0         5.2
## 34                       4.4                 4.9         5.7
## 35                       7.0                 2.8         4.8
## 36                       7.9                 5.1         5.6
## 37                       5.3                 4.6         4.2
## 38                       9.5                 9.4         8.5
## 39                       1.4                 3.7         1.7
## 40                       7.3                 5.3         6.8
## 41                       6.2                 4.6         5.1
## 42                       8.2                 6.1         6.3
## 43                       9.1                 8.3         7.3
## 44                       4.8                 5.5         6.1
## 45                       8.2                 6.9         6.3
## 46                       8.4                 8.3         7.7
## 47                       5.9                 7.4         3.2
## 48                       6.8                 2.2         9.8
## 49                       9.2                 9.5         5.9
## 50                       7.9                 5.7         7.7
## 51                       1.4                 0.6         2.9
## 52                       1.9                 6.4         4.2
## 53                       8.0                 2.6         5.9
## 54                       7.7                 2.6         8.2
## 55                       9.1                 7.3         5.7
## 56                       2.3                 4.0         1.8
## 57                       5.4                 3.2         5.5
## 58                       4.1                 4.2         6.0
## 59                       7.1                 9.4         5.0
## 60                       9.9                 9.3         8.2
## 61                       9.6                 4.3         7.6
## 62                       5.1                 6.5         4.5
## 63                       9.6                 5.3         8.9
## 64                       7.0                 5.0         6.4
## 65                       5.3                 3.6         5.0
## 66                       1.8                 0.5         3.4
## 67                       7.3                 8.2         7.0
## 68                       7.1                 7.1         4.3
## 69                       9.6                 9.3         7.6
## 70                       9.6                 8.2         6.9
## 71                       1.5                 0.5         2.7
## 72                       7.9                 6.7         1.2
## 73                       4.9                 4.3         5.7
## 74                       3.7                 2.2         6.9
## 75                       2.6                 2.5         3.7
## 76                       6.9                 8.6         6.9
## 77                       7.6                 8.0         5.5
## 78                       8.6                 8.0         6.4
## 79                       7.5                 4.1         3.0
## 80                       8.3                 8.1         7.1
## 81                       8.3                 7.2         5.1
## 82                       4.3                 8.3         3.7
## 83                       9.6                 7.9         9.0
## 84                       7.3                 2.7         8.8
## 85                       8.6                 4.6         8.5
## 86                       9.4                 7.5         9.6
## 87                       3.0                 3.3         3.7
## 88                       3.4                 2.1         2.6
## 89                       7.8                 3.3         7.3
## 90                       8.4                 4.7         7.7
## 91                       6.8                 5.4         3.3
## 92                       6.2                 8.1         7.5
## 93                       2.0                 2.7         4.0
## 94                       8.8                 7.3         7.1
## 95                       3.2                 4.4         5.4
## 96                       5.4                 6.3         5.0
## 97                       8.3                 6.4         5.9
## 98                       5.5                 2.6         5.1
## 99                       6.5                 9.1         6.0
## 100                      6.6                 8.5         6.2
## 101                      6.6                 5.8         8.3
## 102                      8.3                 9.9         4.8
## 103                      3.5                 4.6         7.4
## 104                      8.8                 9.4         5.3
## 105                      3.4                 3.6         2.2
## 106                      1.4                 2.6         3.4
## 107                      7.1                 5.9         6.0
## 108                      9.3                 7.5         6.8
## 109                      9.6                 8.8         8.6
## 110                      8.8                 5.2         8.9
## 111                      7.3                 6.0         6.5
## 112                      1.1                 3.3         1.9
## 113                      6.6                 2.3         5.0
## 114                      9.0                 8.8         7.1
## 115                      8.9                 5.0         7.0
## 116                      2.2                 5.6         3.7
## 117                      7.1                 5.1         7.0
## 118                      7.8                 4.6         4.9
## 119                      7.4                 8.6         4.8
## 120                      8.0                 7.3         5.3
## 121                      4.2                 5.6         3.8
## 122                      2.5                 1.3         4.8
## 123                      5.0                 3.4         1.6
## 124                      6.7                 8.4         9.0
## 125                      5.7                 6.0         4.5
## 126                      8.4                 8.0         5.2
## 127                      8.0                 9.6         5.8
## 128                      8.5                 9.0         4.3
## 129                      7.0                 5.2         7.3
## 130                      8.3                 7.1         6.1
## 131                      7.8                 5.6         8.5
## 132                      4.0                 2.2         1.6
## 133                      4.7                 5.7         4.3
## 134                      2.0                 3.6         3.4
## 135                      6.3                 5.9         8.3
## 136                      3.9                 2.3         1.9
## 137                      6.9                 6.7         5.3
## 138                      9.1                 8.6         5.6
## 139                      9.1                 9.5         9.1
## 140                      5.8                 6.4         7.8
## 141                      1.8                 1.7         1.9
## 142                      1.0                 2.7         2.0
## 143                      9.9                 9.7         9.6
## 144                      8.4                 6.7         6.3
## 145                      6.2                 4.9         5.8
## 146                      9.7                 7.3         3.9
## 147                      8.3                 5.3         7.7
## 148                      7.6                 6.0         7.2
## 149                      5.6                 3.0         4.4
## 150                      7.5                 7.1         7.8
## 151                      8.8                 9.7         5.3
## 152                      7.8                 5.6         4.9
## 153                      8.9                 7.8         6.2
## 154                      8.0                 5.7         6.8
## 155                      3.6                 2.8         2.4
## 156                      5.8                 6.1         5.2
## 157                      7.3                 6.5         2.1
## 158                      2.7                 2.4         4.4
## 159                      8.8                 6.0         5.4
## 160                      9.3                 7.0         9.8
## 161                      6.9                 5.2         3.9
## 162                     10.0                 9.4         9.8
## 163                      5.9                 5.3         8.8
## 164                     10.0                 6.1         9.4
##     E2: Economic Inequality E3: Human Flight and Brain Drain
## 1                       8.1                              7.0
## 2                       2.9                              8.3
## 3                       5.6                              5.5
## 4                       8.9                              6.0
## 5                       4.9                              3.0
## 6                       3.6                              6.8
## 7                       1.8                              0.5
## 8                       2.3                              1.6
## 9                       5.1                              4.3
## 10                      5.3                              3.0
## 11                      5.7                              7.0
## 12                      3.7                              4.1
## 13                      2.1                              2.5
## 14                      8.2                              6.5
## 15                      4.7                              6.1
## 16                      8.2                              6.2
## 17                      4.1                              6.5
## 18                      6.8                              4.9
## 19                      7.0                              3.9
## 20                      3.8                              5.0
## 21                      7.8                              7.0
## 22                      7.2                              5.6
## 23                      6.2                              6.6
## 24                      7.6                              7.1
## 25                      2.3                              1.1
## 26                      5.5                              7.7
## 27                      9.6                              6.6
## 28                      8.7                              7.9
## 29                      5.1                              3.4
## 30                      5.9                              3.8
## 31                      6.4                              5.0
## 32                      7.3                              6.8
## 33                      4.7                              3.5
## 34                      2.8                              5.7
## 35                      4.2                              5.5
## 36                      4.9                              3.5
## 37                      2.0                              3.5
## 38                      8.5                              6.8
## 39                      1.2                              1.3
## 40                      7.3                              4.6
## 41                      4.9                              6.6
## 42                      6.0                              4.6
## 43                      5.1                              5.2
## 44                      5.4                              8.4
## 45                      7.9                              4.3
## 46                      8.3                              8.6
## 47                      2.6                              4.3
## 48                      8.0                              6.4
## 49                      6.7                              6.6
## 50                      5.1                              7.6
## 51                      1.0                              1.5
## 52                      3.0                              2.1
## 53                      5.7                              5.2
## 54                      5.9                              7.3
## 55                      4.4                              5.5
## 56                      2.5                              2.0
## 57                      6.4                              7.2
## 58                      2.9                              3.9
## 59                      7.1                              7.1
## 60                      7.3                              6.5
## 61                      9.3                              6.9
## 62                      4.7                              8.2
## 63                      9.2                              8.1
## 64                      6.9                              6.7
## 65                      2.9                              4.0
## 66                      1.3                              1.9
## 67                      6.2                              5.5
## 68                      4.8                              6.3
## 69                      4.9                              5.3
## 70                      6.1                              6.5
## 71                      1.6                              2.8
## 72                      3.6                              2.4
## 73                      2.3                              2.4
## 74                      4.7                              9.0
## 75                      1.9                              2.9
## 76                      4.8                              5.1
## 77                      3.2                              4.2
## 78                      7.4                              6.6
## 79                      4.2                              3.0
## 80                      4.9                              6.7
## 81                      5.3                              6.8
## 82                      3.5                              5.5
## 83                      5.4                              6.2
## 84                      8.2                              7.5
## 85                      7.2                              6.9
## 86                      5.6                              5.4
## 87                      4.1                              5.2
## 88                      1.4                              1.6
## 89                      9.0                              6.1
## 90                      8.0                              6.8
## 91                      4.1                              4.5
## 92                      7.2                              7.9
## 93                      2.0                              3.7
## 94                      6.4                              6.5
## 95                      2.7                              4.2
## 96                      5.3                              4.9
## 97                      3.8                              7.5
## 98                      5.2                              4.2
## 99                      2.0                              4.7
## 100                     5.0                              7.5
## 101                     9.2                              7.3
## 102                     7.1                              6.5
## 103                     7.4                              6.2
## 104                     5.8                              6.2
## 105                     1.6                              2.4
## 106                     2.1                              1.6
## 107                     7.0                              7.7
## 108                     7.8                              7.0
## 109                     7.7                              6.5
## 110                     7.3                              3.8
## 111                     4.5                              6.0
## 112                     1.0                              0.8
## 113                     4.1                              1.9
## 114                     5.3                              6.2
## 115                     4.9                              8.8
## 116                     6.2                              4.0
## 117                     8.8                              6.5
## 118                     7.1                              5.0
## 119                     6.4                              6.2
## 120                     5.2                              5.4
## 121                     2.4                              4.6
## 122                     2.0                              2.8
## 123                     4.7                              1.5
## 124                     8.1                              6.8
## 125                     3.8                              5.4
## 126                     5.2                              3.4
## 127                     7.7                              6.5
## 128                     4.7                              3.3
## 129                     6.7                              7.5
## 130                     4.3                              5.9
## 131                     7.9                              7.4
## 132                     3.0                              1.9
## 133                     2.6                              4.1
## 134                     2.4                              3.6
## 135                     6.7                              4.9
## 136                     2.2                              3.5
## 137                     2.9                              1.2
## 138                     5.9                              6.7
## 139                     8.3                              7.7
## 140                     5.3                              5.6
## 141                     1.7                              0.7
## 142                     1.8                              1.1
## 143                     7.1                              8.2
## 144                     4.3                              5.6
## 145                     7.0                              7.0
## 146                     4.5                              4.1
## 147                     6.2                              7.0
## 148                     8.3                              6.9
## 149                     4.5                              7.2
## 150                     4.5                              5.8
## 151                     4.7                              4.1
## 152                     6.0                              4.5
## 153                     7.0                              6.7
## 154                     3.2                              5.8
## 155                     3.3                              2.2
## 156                     3.5                              2.5
## 157                     3.7                              1.8
## 158                     3.3                              3.6
## 159                     5.7                              5.2
## 160                     6.7                              6.5
## 161                     3.8                              5.3
## 162                     7.7                              6.7
## 163                     9.3                              6.9
## 164                     7.7                              7.1
##     P1: State Legitimacy P2: Public Services P3: Human Rights
## 1                    8.7                 9.8              7.4
## 2                    5.5                 4.4              3.6
## 3                    7.8                 5.6              6.3
## 4                    8.2                 9.3              6.2
## 5                    4.0                 4.8              3.3
## 6                    6.9                 3.9              6.0
## 7                    0.5                 2.8              1.7
## 8                    0.6                 2.3              0.5
## 9                    9.1                 5.5              7.7
## 10                   8.0                 3.5              8.6
## 11                   7.4                 7.7              7.2
## 12                   9.0                 3.3              7.9
## 13                   0.8                 2.5              0.6
## 14                   5.1                 8.5              4.9
## 15                   3.1                 6.2              5.2
## 16                   7.0                 6.9              5.9
## 17                   6.2                 4.8              4.9
## 18                   2.4                 7.1              4.8
## 19                   7.0                 7.4              7.4
## 20                   3.7                 4.0              2.9
## 21                   5.9                 8.7              5.5
## 22                   9.3                 7.9              9.2
## 23                   8.7                 8.2              7.7
## 24                   9.0                 8.6              7.5
## 25                   0.5                 2.3              1.3
## 26                   4.1                 5.6              2.8
## 27                   9.0                10.0              9.3
## 28                   9.4                 9.8              8.2
## 29                   5.2                 4.5              3.6
## 30                   8.5                 5.3              9.6
## 31                   5.5                 6.6              6.8
## 32                   7.7                 8.1              5.8
## 33                   1.3                 4.7              1.1
## 34                   2.3                 3.1              2.6
## 35                   7.4                 4.3              6.5
## 36                   4.0                 3.3              2.7
## 37                   4.1                 2.7              2.0
## 38                   9.2                 9.8              9.2
## 39                   0.5                 1.4              0.9
## 40                   8.4                 7.4              7.2
## 41                   6.0                 7.0              4.7
## 42                   5.7                 6.6              4.2
## 43                   8.6                 4.7              9.8
## 44                   4.4                 6.8              5.5
## 45                   9.8                 8.7              8.4
## 46                   9.6                 8.3              8.9
## 47                   1.5                 2.5              1.3
## 48                   8.6                 7.7              8.2
## 49                   8.8                 8.9              8.4
## 50                   5.7                 4.4              5.7
## 51                   0.5                 1.6              0.5
## 52                   0.9                 1.8              1.2
## 53                   7.5                 6.5              6.7
## 54                   7.2                 7.6              7.8
## 55                   8.2                 4.4              4.8
## 56                   0.5                 2.0              0.8
## 57                   3.2                 7.4              4.4
## 58                   5.5                 4.0              3.3
## 59                   6.5                 7.2              7.2
## 60                  10.0                 9.5              6.9
## 61                   8.9                 9.0              6.6
## 62                   4.6                 6.4              3.3
## 63                   8.8                 9.6              7.1
## 64                   7.1                 7.6              7.2
## 65                   6.4                 3.4              5.3
## 66                   0.5                 1.2              0.5
## 67                   4.3                 7.5              7.7
## 68                   4.4                 6.1              6.4
## 69                   9.2                 4.7              9.5
## 70                   8.8                 8.9              8.1
## 71                   0.5                 2.5              1.6
## 72                   3.3                 1.8              2.9
## 73                   2.8                 3.7              0.9
## 74                   3.6                 7.2              5.2
## 75                   0.5                 1.8              3.0
## 76                   6.3                 5.0              6.8
## 77                   8.2                 4.6              6.7
## 78                   7.6                 8.2              6.3
## 79                   7.0                 3.3              7.2
## 80                   8.0                 5.3              6.3
## 81                   9.0                 6.6              6.9
## 82                   2.2                 3.9              2.4
## 83                   7.7                 5.8              7.0
## 84                   4.7                 7.5              5.1
## 85                   6.8                 9.5              6.7
## 86                   9.9                 7.4              9.1
## 87                   1.5                 3.7              2.2
## 88                   0.5                 1.9              1.1
## 89                   6.3                 8.7              5.8
## 90                   7.1                 8.2              5.3
## 91                   6.3                 4.3              6.8
## 92                   7.5                 9.1              7.4
## 93                   3.1                 2.4              3.3
## 94                   7.9                 8.7              6.9
## 95                   2.1                 3.2              3.6
## 96                   5.5                 6.9              5.8
## 97                   5.7                 5.2              4.5
## 98                   3.8                 5.2              4.0
## 99                   3.6                 4.4              3.4
## 100                  6.8                 5.1              5.6
## 101                  7.0                 9.9              7.4
## 102                  8.1                 8.9              9.1
## 103                  3.0                 7.4              2.6
## 104                  6.4                 7.3              6.5
## 105                  0.5                 1.3              0.7
## 106                  0.5                 1.4              0.5
## 107                  8.6                 6.4              7.3
## 108                  7.1                 9.7              7.1
## 109                  8.4                 9.3              8.7
## 110                  9.9                 8.6              9.4
## 111                  5.1                 4.8              3.0
## 112                  0.5                 1.6              0.5
## 113                  6.9                 3.7              7.0
## 114                  7.3                 8.0              7.3
## 115                  8.8                 4.2              7.7
## 116                  3.1                 5.4              3.8
## 117                  6.0                 9.3              6.9
## 118                  6.6                 6.3              5.5
## 119                  7.2                 7.4              3.5
## 120                  7.4                 6.8              7.8
## 121                  4.3                 3.0              4.0
## 122                  0.8                 2.9              1.1
## 123                  6.4                 2.9              6.1
## 124                  9.1                 8.9              7.8
## 125                  5.0                 4.8              3.6
## 126                  8.5                 4.3              8.9
## 127                  6.8                 7.5              6.0
## 128                  7.8                 4.4              8.6
## 129                  3.6                 7.5              4.8
## 130                  5.5                 3.9              3.5
## 131                  5.7                 8.8              5.0
## 132                  3.7                 1.5              4.5
## 133                  3.8                 3.2              2.3
## 134                  1.9                 2.4              1.1
## 135                  5.9                 6.9              4.2
## 136                  3.0                 2.2              3.1
## 137                  6.9                 2.9              1.2
## 138                  6.3                 4.7              8.2
## 139                  8.8                 8.8              8.6
## 140                  3.8                 5.2              4.2
## 141                  0.5                 1.4              0.9
## 142                  0.5                 1.6              0.8
## 143                 10.0                 9.6              9.7
## 144                  9.2                 4.9              8.5
## 145                  7.5                 8.8              6.2
## 146                  7.7                 4.0              7.9
## 147                  5.5                 7.6              4.2
## 148                  8.2                 8.5              6.7
## 149                  3.3                 4.5              3.7
## 150                  5.9                 5.0              5.5
## 151                  7.3                 5.4              8.0
## 152                  9.8                 4.7              8.6
## 153                  8.4                 8.0              7.4
## 154                  6.8                 4.5              6.0
## 155                  6.4                 2.9              7.0
## 156                  3.2                 2.6              2.1
## 157                  3.5                 2.7              4.4
## 158                  0.5                 3.8              3.0
## 159                  9.3                 4.6              7.6
## 160                  9.5                 8.9              9.1
## 161                  8.4                 4.3              7.8
## 162                  9.9                 9.8              9.7
## 163                  7.5                 8.0              7.0
## 164                  8.8                 9.0              8.0
##     S1: Demographic Pressures S2: Refugees and IDPs X1: External Intervention
## 1                         9.0                   8.8                       8.3
## 2                         4.1                   2.6                       6.1
## 3                         4.8                   6.8                       3.7
## 4                         9.0                   5.9                       4.6
## 5                         5.3                   1.9                       4.3
## 6                         4.4                   6.6                       7.0
## 7                         2.9                   2.0                       0.5
## 8                         3.4                   4.4                       0.5
## 9                         4.2                   6.9                       7.2
## 10                        4.1                   1.7                       5.3
## 11                        7.1                   7.3                       5.2
## 12                        5.1                   2.4                       7.1
## 13                        4.0                   2.3                       0.5
## 14                        7.7                   5.1                       5.5
## 15                        5.2                   5.8                       7.1
## 16                        7.1                   3.1                       4.6
## 17                        5.1                   7.0                       7.6
## 18                        7.6                   3.3                       2.9
## 19                        8.8                   3.3                       3.6
## 20                        5.2                   3.7                       4.3
## 21                        8.6                   7.2                       8.1
## 22                        9.2                   8.2                       8.2
## 23                        5.9                   4.5                       6.8
## 24                        8.8                   8.3                       7.0
## 25                        2.0                   2.2                       0.5
## 26                        6.8                   3.6                       8.4
## 27                        8.9                   9.7                       9.6
## 28                        9.6                   9.3                       7.9
## 29                        5.9                   1.9                       1.1
## 30                        5.9                   3.7                       2.7
## 31                        8.0                   7.6                       5.4
## 32                        8.0                   6.0                       6.8
## 33                        3.5                   3.9                       4.3
## 34                        4.6                   6.6                       4.5
## 35                        5.0                   3.0                       5.0
## 36                        3.4                   5.3                       8.2
## 37                        3.0                   3.2                       2.1
## 38                        9.8                  10.0                       9.1
## 39                        2.3                   2.2                       0.5
## 40                        7.5                   7.1                       8.2
## 41                        6.7                   2.6                       4.2
## 42                        6.9                   5.6                       5.1
## 43                        6.5                   6.1                       6.7
## 44                        7.0                   5.5                       5.6
## 45                        8.5                   5.0                       4.2
## 46                        8.2                   7.4                       7.1
## 47                        2.9                   1.9                       3.7
## 48                        8.9                   4.1                       6.7
## 49                        9.4                   9.1                       8.1
## 50                        4.1                   2.8                       7.2
## 51                        1.7                   1.5                       0.5
## 52                        3.9                   2.7                       0.9
## 53                        6.7                   3.3                       4.5
## 54                        8.4                   6.0                       6.1
## 55                        4.5                   6.3                       6.8
## 56                        2.1                   4.0                       0.5
## 57                        6.9                   4.0                       5.7
## 58                        3.9                   5.9                       6.9
## 59                        7.2                   4.8                       4.0
## 60                        8.6                   7.0                       6.2
## 61                        8.6                   6.1                       7.4
## 62                        5.8                   3.4                       6.5
## 63                        8.2                   7.1                       9.0
## 64                        6.1                   5.5                       6.9
## 65                        3.3                   5.6                       3.9
## 66                        1.5                   1.5                       3.2
## 67                        8.1                   4.1                       4.5
## 68                        6.8                   4.2                       4.3
## 69                        5.5                   5.3                       6.7
## 70                        8.4                   8.3                       8.5
## 71                        2.8                   1.4                       1.6
## 72                        4.8                   1.2                       4.8
## 73                        5.2                   4.5                       3.4
## 74                        4.6                   2.8                       4.7
## 75                        5.7                   3.2                       2.6
## 76                        6.1                   8.6                       6.5
## 77                        4.1                   2.1                       3.0
## 78                        8.3                   7.5                       6.9
## 79                        4.6                   2.4                       3.6
## 80                        5.5                   4.1                       5.9
## 81                        6.4                   5.1                       4.9
## 82                        3.0                   1.9                       2.7
## 83                        5.2                   8.8                       8.9
## 84                        8.4                   4.3                       7.0
## 85                        8.5                   7.5                       8.1
## 86                        5.9                   7.7                       9.9
## 87                        3.4                   1.8                       4.0
## 88                        2.8                   2.5                       0.5
## 89                        9.2                   4.1                       5.6
## 90                        9.4                   5.4                       7.4
## 91                        4.4                   3.0                       2.6
## 92                        8.7                   8.1                       9.3
## 93                        3.7                   3.8                       3.1
## 94                        8.5                   7.9                       6.8
## 95                        2.9                   1.7                       3.5
## 96                        6.7                   5.0                       4.6
## 97                        5.4                   3.0                       6.2
## 98                        4.7                   2.5                       6.6
## 99                        3.9                   3.4                       6.9
## 100                       4.8                   5.3                       5.2
## 101                       9.8                   7.7                       7.6
## 102                       6.3                   8.8                       7.1
## 103                       8.1                   4.1                       5.2
## 104                       8.1                   7.2                       5.9
## 105                       3.1                   2.6                       0.5
## 106                       1.4                   1.6                       0.5
## 107                       4.8                   3.7                       6.8
## 108                       8.8                   8.5                       7.5
## 109                       9.3                   6.6                       5.7
## 110                       7.1                   3.8                       9.2
## 111                       4.2                   6.9                       5.5
## 112                       1.4                   2.2                       0.5
## 113                       4.5                   1.9                       3.5
## 114                       7.9                   7.5                       8.2
## 115                       8.5                   6.2                      10.0
## 116                       5.3                   2.2                       2.0
## 117                       7.6                   4.3                       5.6
## 118                       5.5                   3.0                       3.8
## 119                       7.4                   4.1                       2.3
## 120                       7.6                   6.3                       6.0
## 121                       3.6                   2.4                       2.8
## 122                       3.3                   1.8                       3.0
## 123                       3.4                   1.4                       6.3
## 124                       8.0                   6.5                       6.1
## 125                       4.3                   2.1                       3.7
## 126                       4.6                   4.6                       4.8
## 127                       7.5                   7.5                       6.3
## 128                       4.9                   3.8                       4.7
## 129                       7.1                   6.1                       5.5
## 130                       3.9                   7.4                       7.0
## 131                       8.8                   7.4                       6.7
## 132                       2.1                   0.7                       0.7
## 133                       2.4                   2.6                       2.1
## 134                       3.4                   2.8                       1.1
## 135                       7.1                   4.2                       3.2
## 136                       2.3                   1.6                       4.4
## 137                       3.5                   2.2                       1.7
## 138                       5.7                   7.2                       5.7
## 139                       9.1                   9.4                       8.7
## 140                       5.3                   3.1                       5.0
## 141                       3.3                   4.3                       0.5
## 142                       3.2                   3.1                       0.5
## 143                       7.6                   9.7                      10.0
## 144                       7.0                   3.6                       4.9
## 145                       8.6                   5.5                       6.6
## 146                       5.9                   5.1                       2.6
## 147                       8.9                   5.4                       8.6
## 148                       7.5                   6.3                       5.5
## 149                       3.9                   2.5                       3.4
## 150                       4.3                   3.5                       5.2
## 151                       5.1                   8.4                       5.7
## 152                       5.4                   2.9                       2.9
## 153                       9.2                   9.1                       7.3
## 154                       4.3                   4.2                       7.8
## 155                       3.6                   1.8                       1.8
## 156                       3.6                   1.7                       1.7
## 157                       5.0                   2.3                       1.0
## 158                       3.4                   1.9                       2.7
## 159                       4.8                   4.4                       4.0
## 160                       6.5                   6.3                       5.7
## 161                       5.0                   4.5                       4.3
## 162                       9.8                   9.8                       9.7
## 163                       9.4                   5.5                       6.8
## 164                       9.3                   8.2                       6.9
##     Democracy_Score                 Type
## 1              2.85 Authoritarian regime
## 2              6.08     Flawed democracy
## 3              3.77 Authoritarian regime
## 4              3.66 Authoritarian regime
## 5              6.95     Flawed democracy
## 6              5.35        Hybrid regime
## 7              8.96       Full democracy
## 8              8.16       Full democracy
## 9              2.68 Authoritarian regime
## 10             2.49 Authoritarian regime
## 11             5.99        Hybrid regime
## 12             2.59 Authoritarian regime
## 13             7.51     Flawed democracy
## 14             4.58        Hybrid regime
## 15             5.71        Hybrid regime
## 16             5.08        Hybrid regime
## 17             4.84        Hybrid regime
## 18             7.62     Flawed democracy
## 19             6.92     Flawed democracy
## 20             6.71     Flawed democracy
## 21             3.73 Authoritarian regime
## 22             2.14 Authoritarian regime
## 23             3.10 Authoritarian regime
## 24             2.77 Authoritarian regime
## 25             9.24       Full democracy
## 26             7.65     Flawed democracy
## 27             1.32 Authoritarian regime
## 28             1.55 Authoritarian regime
## 29             8.28       Full democracy
## 30             2.27 Authoritarian regime
## 31             7.04     Flawed democracy
## 32             3.09 Authoritarian regime
## 33             8.16       Full democracy
## 34             6.50     Flawed democracy
## 35             2.84 Authoritarian regime
## 36             7.56     Flawed democracy
## 37             7.67     Flawed democracy
## 38             1.13 Authoritarian regime
## 39             9.15       Full democracy
## 40             2.71 Authoritarian regime
## 41             6.32     Flawed democracy
## 42             6.13     Flawed democracy
## 43             2.93 Authoritarian regime
## 44             5.90        Hybrid regime
## 45             1.92 Authoritarian regime
## 46             2.15 Authoritarian regime
## 47             7.84     Flawed democracy
## 48             3.08 Authoritarian regime
## 49             3.38 Authoritarian regime
## 50             5.72        Hybrid regime
## 51             9.20       Full democracy
## 52             7.99     Flawed democracy
## 53             3.54 Authoritarian regime
## 54             4.49        Hybrid regime
## 55             5.31        Hybrid regime
## 56             8.67       Full democracy
## 57             6.50     Flawed democracy
## 58             7.39     Flawed democracy
## 59             4.97        Hybrid regime
## 60             3.08 Authoritarian regime
## 61             2.63 Authoritarian regime
## 62             6.01     Flawed democracy
## 63             4.22        Hybrid regime
## 64             5.36        Hybrid regime
## 65             6.56     Flawed democracy
## 66             9.37       Full democracy
## 67             6.61     Flawed democracy
## 68             6.30     Flawed democracy
## 69             2.20 Authoritarian regime
## 70             3.62 Authoritarian regime
## 71             9.05       Full democracy
## 72             7.84     Flawed democracy
## 73             7.74     Flawed democracy
## 74             7.13     Flawed democracy
## 75             8.13       Full democracy
## 76             3.62 Authoritarian regime
## 77             3.14 Authoritarian regime
## 78             5.05        Hybrid regime
## 79             3.80 Authoritarian regime
## 80             4.21        Hybrid regime
## 81             1.77 Authoritarian regime
## 82             7.24     Flawed democracy
## 83             4.16        Hybrid regime
## 84             6.30     Flawed democracy
## 85             5.32        Hybrid regime
## 86             1.95 Authoritarian regime
## 87             7.13     Flawed democracy
## 88             8.68       Full democracy
## 89             5.70        Hybrid regime
## 90             5.74        Hybrid regime
## 91             7.19     Flawed democracy
## 92             3.93 Authoritarian regime
## 93             7.68     Flawed democracy
## 94             3.92 Authoritarian regime
## 95             8.14       Full democracy
## 96             6.07     Flawed democracy
## 97             5.78        Hybrid regime
## 98             6.48     Flawed democracy
## 99             5.77        Hybrid regime
## 100            5.04        Hybrid regime
## 101            3.51 Authoritarian regime
## 102            3.04 Authoritarian regime
## 103            6.52     Flawed democracy
## 104            5.22        Hybrid regime
## 105            8.96       Full democracy
## 106            9.25       Full democracy
## 107            3.60 Authoritarian regime
## 108            3.29 Authoritarian regime
## 109            4.10        Hybrid regime
## 110            1.08 Authoritarian regime
## 111            5.89        Hybrid regime
## 112            9.81       Full democracy
## 113            3.00 Authoritarian regime
## 114            4.31        Hybrid regime
## 115            3.83 Authoritarian regime
## 116            7.18     Flawed democracy
## 117            6.10     Flawed democracy
## 118            6.18     Flawed democracy
## 119            6.53     Flawed democracy
## 120            6.56     Flawed democracy
## 121            6.85     Flawed democracy
## 122            7.90     Flawed democracy
## 123            3.24 Authoritarian regime
## 124            3.11 Authoritarian regime
## 125            6.40     Flawed democracy
## 126            3.31 Authoritarian regime
## 127            3.10 Authoritarian regime
## 128            2.08 Authoritarian regime
## 129            5.67        Hybrid regime
## 130            6.22     Flawed democracy
## 131            4.86        Hybrid regime
## 132            6.03     Flawed democracy
## 133            6.97     Flawed democracy
## 134            7.54     Flawed democracy
## 135            7.05     Flawed democracy
## 136            8.01       Full democracy
## 137            8.12       Full democracy
## 138            6.14     Flawed democracy
## 139            2.54 Authoritarian regime
## 140            6.82     Flawed democracy
## 141            9.26       Full democracy
## 142            8.83       Full democracy
## 143            1.43 Authoritarian regime
## 144            1.94 Authoritarian regime
## 145            5.10        Hybrid regime
## 146            6.04     Flawed democracy
## 147            7.06     Flawed democracy
## 148            2.80 Authoritarian regime
## 149            7.16     Flawed democracy
## 150            6.59     Flawed democracy
## 151            4.48        Hybrid regime
## 152            1.72 Authoritarian regime
## 153            4.94        Hybrid regime
## 154            5.81        Hybrid regime
## 155            2.70 Authoritarian regime
## 156            8.54       Full democracy
## 157            7.92     Flawed democracy
## 158            8.61       Full democracy
## 159            2.12 Authoritarian regime
## 160            2.76 Authoritarian regime
## 161            2.94 Authoritarian regime
## 162            1.95 Authoritarian regime
## 163            4.86        Hybrid regime
## 164            3.16 Authoritarian regime
table(A$Hum_Rights) #VER FRECUENCIAS DE VARIABLE "A"
## < table of extent 0 >
class(A$Hum_Rights) #FORMATO DE LA VARIABLE: VER SI ES NUM O FACTOR
## [1] "NULL"