Skip to contents

Function to plot synthetic migration estimates

Usage

plot_migmod(
  df,
  mmfit,
  sending = c("SE", "FI", "IT", "PL"),
  receiving = c("SE", "FI", "IT", "PL"),
  years = 2010:2019
)

Arguments

df

A data frame with migration data for sending countries, receiving countries, data quality measures and covariates

mmfit

A stanfit object produced by the function migmod_m that contains estimates of the model parameters and synthetic estimates of the "true" migration.

sending

A vector of ISO2 codes with sending countries to be used in the model (recommended to keep SE and FI)

receiving

A vector of ISO2 codes with receiving countries to be used in the model (recommended to keep SE and FI)

years

A vector of years to be used in the model (2010 to 2019)

Value

An object of class ggplot.