Calculate truncated age standardized rate.
truncrate(
cases,
pop,
stdpop = NULL,
trunc_age = c(35, 64),
agewidth = 5,
sep_zero = TRUE,
mp = 100,
decimal = 2
)
Number of cases.
Number of population at risk.
The standard population.
The truncated age range.
Age groups width, default is 5.
Logical value, if the 0 age group was a separate group.
A multiplier used to scale the calculated rates. Default is 100.
Decimals of the calculated rates, default is 2.
Truncated age standardized rate.
px <- c(20005, 86920, 102502, 151494, 182932, 203107, 240289, 247076, 199665,
163820, 145382, 86789, 69368, 51207, 39112, 20509, 12301, 6586, 1909)
dx <- c(156, 58, 47, 49, 48, 68, 120, 162, 160, 294, 417, 522, 546, 628,
891, 831, 926, 731, 269)
stdpop <- c(2.4,9.6,10,9,9,8,8,6,6,6,6,5,4,4,3,2,1,0.5,0.5)
truncrate(dx, px, stdpop, trunc_age=c(35,64))
#> [1] 0.62