Skip to content

Commit

Permalink
for real, feed correct slice of pop_dt
Browse files Browse the repository at this point in the history
  • Loading branch information
pearsonca committed Nov 3, 2024
1 parent 4a1ad14 commit 190ae37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst/analysis/scripts/param.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ for (i in seq_along(widths)) {
}

mapping_dt <- alembic(
f_param = f_ifr, f_dense = pop_dt,
f_param = f_ifr, f_dense = pop_dt[, .(from, weight)],
model_partition = model_agelimits,
output_partition = pop_dt[, seq(min(from), max(from) + 1L)]
)

# using `parameter_summary` instead of `blend`, because we want to compare to
# the naive alternatives
ifr_params <- parameter_summary(
f_param = f_ifr, f_dense = pop_dt,
f_param = f_ifr, f_dense = pop_dt[, .(from, weight)],
model_partition = model_agelimits
)

Expand Down

0 comments on commit 190ae37

Please sign in to comment.