Main method for a projection object. It is used to run the MRC projection - multi-state projection of population by age, sex and religious affiliation. Calling this method executes the MRC projection using parameters stored in the projection_object and input data stored in country_object_list.
The method performs the full projection workflow according to the settings contained in projection_object (e.g. number of steps, inclusion of migration and switching, switching sequence, fertility differentials). Input data for all countries must be supplied via country_object_list prior to running.
See also
create_country_list, create_projection_object,
variants_loader to set up a projection before calling this function.
save_csv_all and save_plots_all to export results afterwards.
vignette("conducting-projections") for a full walkthrough.
vignette("inner-workings") for the internal projection algorithm.
Examples
# Running a full projection is time-consuming.
# Wrapped in dontrun to avoid executing during documentation build.
if (FALSE) { # \dontrun{
p_object <- create_projection_object(name = "test")
p_object$project()
p_object <- create_projection_object(name = "test")
project(projection_object = p_object)
} # }