make_mig_counts_match_rates: Make migration counts and rates match in a CCMPP input list

View source: R/S3_classes_ccmpp_input_mig_net_rate_df.R

make_mig_counts_match_ratesR Documentation

Make migration counts and rates match in a CCMPP input list

Description

The mig_net_count_age_sex and mig_net_rate_age_sex components of a ccmpp_input_list can be set independentely of each other. When a projection is done, the mig_parameter component determines whether the rates or counts are used. This function will modify its first argument by overwriting the mig_net_count_age_sex component with new counts such the rates and counts yield identical projections.

Usage

make_mig_counts_match_rates(x, set_mig_type = TRUE)

Arguments

x

A ccmpp_input_list

set_mig_type

Logical; should mig_type(x) be set to "rates"?

Value

x suitably modifed.

Author(s)

Mark Wheldon

See Also

Other migration rate functions: mig_net_rate_age_sex, mig_parameter, mig_type. Also ccmpp_input_list and pop_count_age_sex for obtaining population projections.


markalava/ccmppWPP documentation built on April 21, 2022, 12:36 a.m.