This publication aims to present migration data in the world from 1990 to 2020 carried out using data analysis with R
Migration is defined as the movement of people from one place to another, either within a country or between countries. There are different reasons why people decide to migration, such as the searchig for better economic opportunities, family reunification, fleeing of violence or being affected by climate change in their country or in their region. Migration has a significant impact on societies of origin and destination.
library(tidyr)
library(readr)
library(readxl)
library(dplyr)
library(gridExtra)
library(ggplot2)
library(plotly)
library(RColorBrewer)
library(stringr)
library(DT)
library(kableExtra)
library(knitr)
In countries of origin, migration can help to reduce poverty and unemployment; In destination countries, migration can contribute to economic growth and social development. However, migration can also create challenges, such as competition for resources and cultural conflicts.
Data of migration flows indicates the number of migrants entering or leaving in a specific time period. Migratory flows have been consolidated as one of the vectors of socioeconomic transformation and relations between States. According to the latest estimates from the International Organization for Migration (IOM), there were 281 (two hundred million) of international migrants worldwide in 2020, representing 3.6% (three point six percent) of the world’s population.
Approximately 15 million migrants of the the annual global flow of approximately, fell into one of the four categories: economic (6 million), student (4 million), family (2 million), and refugees/asylees (3 million).
# Subsetting data by continent. and regions
byOriginContinent <- migration_long %>%
filter(origin_region %in% c("AFRICA", "ASIA", "EUROPE", "LATIN AMERICA AND THE CARIBBEAN", "NORTHERN AMERICA", "OCEANIA"))
datatable(byOriginContinent)
Data from: United Nations Department of Economic and Social Affairs, Population Division (2020). International Migrant Stock 2020
Global migration trends, have been changing over time. In recent decades, there has been an increase in migration from underdeveloped countries to developed countries. This is due to a number of factors, including globalization, the expansion of international trade and communication technologies.
Woman migration is part of the 48% (fourty eight percent) of international migrants. Almost three of four international migrants were between 20 and 64 years old, and 41 million were under 20 years old. The majority of international migrants reside in Asia and Europe (31% respectively), followed by North America (21%), Africa (9%), Latin America and the Caribbean (5%) and Oceania (3% Data on migrant populations are generally reported together with data on migration flows. Although both figures give a number of migrants, what they measure is different Data on migration flows indicate the number of migrants entering or leaving in a specific period of time (usually in a year). Another aspect that is important in recent migratory trends is the feminization of migratory flows. Throughout history, women migrated accompanying men. In the last thirty years, the number of women who emigrate as heads of families or as breadwinners has increased, concentrating in the personal services subsector of domestic service and care of the elderly, children, sick and disabled.
Data from: United Nations Department of Economic and Social Affairs, Population Division (2020). International Migrant Stock 2020
Data from: United Nations Department of Economic and Social Affairs, Population Division (2020). International Migrant Stock 2020
bySubregion <- migration_long %>%
filter(str_detect(origin_region, paste(subregions, collapse = "|"))) %>%
filter(!str_detect(origin_region, paste(notSubregions, collapse = "|"))) %>%
mutate(origin_region= str_replace(origin_region, "\\*", ""))
datatable(bySubregion)
Due to the migratory flows that currently affect millions of people around the world, doubts have grew up in the media about the word that should be used to refer to all of them in a general way.
In this regard, it should be noted that the noun emigrant focuses on the person who leaves their home, while immigrant refers to that same person, but from the perspective of someone who has already arrived at their new destination to settle there.
genderStats <- byOriginContinent %>%
filter(year == "2020" & gender %in% c("Female", "Male")) %>%
group_by(gender) %>%
summarize(totalMigrants = sum(countMigrants)) %>%
mutate(percentage = round((totalMigrants / sum(totalMigrants)) * 100, 1))
datatable(genderStats)
The stated H0: There is no difference in migration trends between males and females
# t-test to compare the mean migration between genders
t_testGender <- t.test(countMigrants ~ gender, data = filtered_data)
t_testGender
##
## Welch Two Sample t-test
##
## data: countMigrants by gender
## t = -0.1408, df = 9.6524, p-value = 0.8909
## alternative hypothesis: true difference in means between group Female and group Male is not equal to 0
## 95 percent confidence interval:
## -29028851 25594071
## sample estimates:
## mean in group Female mean in group Male
## 21469718 23187108
| estimate | estimate1 | estimate2 | statistic | p.value | parameter | conf.low | conf.high | method | alternative |
|---|---|---|---|---|---|---|---|---|---|
| -1717390 | 21469718 | 23187108 | -0.141 | 0.891 | 9.652 | -29028851 | 25594071 | Welch Two Sample t-test | two.sided |
According to the p-value (0.8909) there is no evidence to reject H0
continents <- c("AFRICA", "ASIA", "EUROPE", "LATIN AMERICA AND THE CARIBBEAN", "NORTHERN AMERICA", "OCEANIA")
byDestContinent <- migration2_long %>%
filter(dest_region %in% c("AFRICA", "ASIA", "EUROPE", "LATIN AMERICA AND THE CARIBBEAN", "NORTHERN AMERICA", "OCEANIA"))
genderStats2 <- byDestContinent %>%
filter(year == "2020" & gender %in% c("Female", "Male")) %>%
group_by(gender) %>%
summarize(totalMigrants = sum(countMigrants)) %>%
mutate(percentage = (totalMigrants / sum(totalMigrants)) * 100)
genderStats2
## # A tibble: 2 × 3
## gender totalMigrants percentage
## <chr> <dbl> <dbl>
## 1 Female 1190451171 47.8
## 2 Male 1301814563 52.2