Distill Outcomes
distill.Rd
distill
takes a low-age resolution outcome, for example deaths,
and proportionally distributes that outcome into a higher age resolution for
use in subsequent analyses like years-life-lost style calculations.
Arguments
- alembic_dt
an
alembic()
return value- outcomes_dt
a long-format
data.frame
with a column either namedfrom
ormodel_from
and a columnvalue
(other columns will be silently ignored)
Details
When the value
column is re-calculated, note that it will aggregate all
matching from
/ model_from
rows in outcomes_dt
. If you need to group
by other features in your input data (e.g. if you need to distill outcomes
across multiple simulation outputs), that has to be done outside of any call
to distill()
.