Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
hillalex committed Jul 31, 2024
1 parent 9280ceb commit 44541ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/scova.R
Original file line number Diff line number Diff line change
Expand Up @@ -504,11 +504,12 @@ scova <- R6::R6Class(
by = c(private$all_formula_vars, "stan_id", "titre_type")]

if (summarise) {
logger::log_info("Summarising into population quantiles")
logger::log_info("Resampling")
dt_out <- dt_out[
!is.nan(mu), .(pop_mu_sum = mean(mosaic::resample(mu))),
by = c("calendar_date", "draw", "titre_type")]

logger::log_info("Summarising into population quantiles")
dt_out <- summarise_draws(
dt_out,
column_name = "pop_mu_sum",
Expand Down

0 comments on commit 44541ea

Please sign in to comment.