Entregable 1
Entregable 1
Entregable 1
## ── Conflicts ──────────────────────────────────────────
tidyverse_conflicts() ──
## x dplyr::filter() masks stats::filter()
## x dplyr::lag() masks stats::lag()
library(readr)
library(FactoMineR)
##
##
## +------------------+------------------+-----------------+
## | Pais | PIB_PC | Tasa_Mortalidad |
## +==================+==================+=================+
## | Length:216 | Min. : 677 | Min. : 10 |
## +------------------+------------------+-----------------+
## | Class :character | 1st Qu.: 24633 | 1st Qu.: 2268 |
## +------------------+------------------+-----------------+
## | Mode :character | Median : 71083 | Median : 11585 |
## +------------------+------------------+-----------------+
## | NA | Mean : 3010198 | Mean : 176667 |
## +------------------+------------------+-----------------+
## | NA | 3rd Qu.: 484501 | 3rd Qu.: 66332 |
## +------------------+------------------+-----------------+
## | NA | Max. :233848318 | Max. :10313460 |
## +------------------+------------------+-----------------+
## | NA | NA's :11 | NA's :26 |
## +------------------+------------------+-----------------+
##
## Table: Table continues below
##
##
##
## +----------------+----------------+----------------+
## | Tasa_Desempleo | CO2_Emisiones | Gasto_Publico |
## +================+================+================+
## | Min. : 0.300 | Min. : 0.110 | Min. : 0.867 |
## +----------------+----------------+----------------+
## | 1st Qu.: 4.625 | 1st Qu.: 3.560 | 1st Qu.:11.188 |
## +----------------+----------------+----------------+
## | Median : 7.700 | Median : 5.590 | Median :14.130 |
## +----------------+----------------+----------------+
## | Mean : 9.538 | Mean : 7.197 | Mean :14.329 |
## +----------------+----------------+----------------+
## | 3rd Qu.:12.000 | 3rd Qu.: 9.215 | 3rd Qu.:17.125 |
## +----------------+----------------+----------------+
## | Max. :76.600 | Max. :26.910 | Max. :32.728 |
## +----------------+----------------+----------------+
## | NA's :34 | NA's :30 | NA's :71 |
## +----------------+----------------+----------------+
##
## Table: Table continues below
##
##
##
## +----------------+-------------------+----------------+
## | Inflacion | Tasa_Desnutricion | Tasa_Alimentos |
## +================+===================+================+
## | Min. :-2.815 | Min. : 2.500 | Min. : 1.233 |
## +----------------+-------------------+----------------+
## | 1st Qu.: 1.256 | 1st Qu.: 2.500 | 1st Qu.:11.995 |
## +----------------+-------------------+----------------+
## | Median : 2.408 | Median : 5.500 | Median :18.962 |
## +----------------+-------------------+----------------+
## | Mean : 4.205 | Mean : 9.888 | Mean :22.204 |
## +----------------+-------------------+----------------+
## | 3rd Qu.: 4.081 | 3rd Qu.:12.000 | 3rd Qu.:29.302 |
## +----------------+-------------------+----------------+
## | Max. :83.502 | Max. :57.400 | Max. :67.395 |
## +----------------+-------------------+----------------+
## | NA's :43 | NA's :55 | NA's :121 |
## +----------------+-------------------+----------------+
##
## Attaching package: 'reshape2'
library(reshape)
##
## Attaching package: 'reshape'
Con el gráfico de correlación, podemos observar el grado en el cual las variables estan
correlacionadas entre si, entonces graficamente en general las variables cuentas entre
si unas con otras muy baja correlacion, sin embargo las variables que tienen algo de
correlacion son gasto publico y tasa de alimentos, asi como inflacion y las emisiones
de C02, el gasto publico y el PIB-PC.
library(grid)
library(gridExtra)
##
## Attaching package: 'gridExtra'