epiforecasts/EpiNow

Identical samples generated by nowcast_pipeline

akira-endo opened this issue · 3 comments

Identical samples are generated when argument sample>1 is given to nowcast_pipeline.
Lines 145-152 in nowcast_pipeline.R:

    sample_bin <- EpiNow::sample_onsets(
      onsets = case_counts_by_onset$cases,
      dates = case_counts_by_onset$date,
      cum_freq = delay_fn(1:nrow(case_counts_by_onset), dist = TRUE),
      report_delay = 0,
      samples = 1
    )[[1]] %>%
      dplyr::mutate(type = "nowcast", import_status = "local")

is suspicious

Just realised it was because of an error on my side!

Phew!