Description Usage Arguments Details Value
This can be useful to check constrained sums, or as an intermediate step for smoothing.
1 2 3 4 5 6 7 8 |
Value |
numeric. Vector of single age counts. |
Age |
integer. Vector of lower bounds of single age groups. |
N |
integer. The desired width of resulting age groups. Default 5. |
shiftdown |
integer. Optionally shift age groupings down by single ages. Default 0. |
AgeN |
integer vector, otherwise calculated using |
OAnew |
integer. Value of lower bound of new open age group. |
If you shift the groupings, then the first age groups may have a negative
lower bound (for example of -5). These counts would be discarded for the
oscillatory version of Sprague smoothing, for example, but they are preserved
in this function. The important thing to know is that if you shift the
groups, the first and last groups will not be N years wide. For example if
shiftdown
is 1, the first age group is 4-ages wide. The ages
themselves are not returned but they are the name attribute of the output
count vector. Note this will also correctly group abridged ages into equal
5-year age groups if the Age
argument is explicitly given.
OAnew
(optional) must be less than or equal to max(Age)
to have
any effect.
Vector of counts in N-year age groups.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.