Description Usage Arguments Value Examples
View source: R/make_system_models.R
Make system models for population, deaths, and births, for a demographic account
1 2 3 4 5 6 7 8 9 10 11 | make_system_models(
expected_popn,
mort_rates,
fert_rates,
time_trend_popn = TRUE,
sd_intercept = 0,
sd_time = 0,
sd_agesex = 0,
scale_sd_popn = 1,
scale_sd_rates = 0
)
|
expected_popn |
A |
mort_rates |
A |
fert_rates |
A |
time_trend_popn |
Whether to use random walk model
for the time effect in population. Defaults to
|
sd_intercept |
The standard deviation term to be used in priors for the intercept. |
sd_time |
The standard deviation term to be used in exchangeable priors for time. |
sd_agesex |
The standard deviation term to be used in priors for age-sex or age-sex-triangle interactions. |
scale_sd_popn |
The scale to be used in the prior for standard deviation in the prior model for population. |
scale_sd_rates |
The scale to be used in the priors for standard deviation in prior models for mortality and fertility rates. |
A list of three model specifications.
1 2 3 4 5 6 7 8 9 10 11 12 | Lx <- dembase::Counts(Lx_west[ , , 20])
mort_rates <- dembase::Values(mx_west[ , , , 20])
propn_age_fert <- dembase::Values(propn_age_fert_booth)
expected_popn <- make_stationary_popn(popn_size = 100,
Lx = Lx,
sex_ratio = 105)
fert_rates <- make_stationary_fert_rates(Lx = Lx,
propn_age_fert = propn_age_fert,
sex_ratio = 105)
make_system_models(expected_popn = expected_popn,
mort_rates = mort_rates,
fert_rates = fert_rates)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.