Description Usage Arguments Details Value Examples
Calculations accession from a movements account with an age dimension. Accession is the number of people reaching a given age during a given period. For instance, accession to age 65 during 2019 is the number of people turning 65 during 2019.
1 2 3 4 |
object |
A |
births |
If |
openAge |
If |
Births can be considered as accession to age 0. By default,
the return value to accession
includess age 0.
If the account does not in fact include births, then accession
to age 0 is set to 0.
When openAge
is TRUE
, the analogue of accession
is calculated for the oldest age group: the
number of people reaching the next oldest age group.
This differs from accession for other age groups since
the oldest age group potentially contains many cohorts.
An object of class Counts
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | population <- Counts(array(c(10, 15, 13, 16),
dim = c(2, 2),
dimnames = list(age = c("0-29", "30+"),
time = c(1970, 2000))))
births <- Counts(array(13,
dim = c(1, 1),
dimnames = list(age = "30+",
time = "1971-2000")))
deaths <- Counts(array(c(0, 9),
dim = c(2, 1),
dimnames = list(age = c("0-29", "30+"),
time = c("1971-2000"))))
account <- Movements(population = population,
births = births,
exits = list(deaths = deaths))
accession(account)
accession(account, births = FALSE)
accession(account, openAge = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.