Function to plot synthetic migration estimates
plot_migmod.RdFunction to plot synthetic migration estimates
Arguments
- df
A data frame with migration data for sending countries, receiving countries, data quality measures and covariates
- mmfit
A
stanfitobject produced by the functionmigmod_mthat 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)