within-subgroup decomposition of rates, and decomposition of population rate as sum of weights*rates. \[
\sum\limits_i w_i \,\,\cdot \underset{\uparrow \atop a_i \cdot b_i \cdot c_i}{r_i}
\]
dgnpop(scbrth, pop="year",factors=c("propw","propw1544","bpw")) |>ggplot(aes(x = pop, y = rate, col = factor, group = factor))+geom_line() +theme_minimal()