API overview
The code is a Julia package, BVDOutbreakSize, and the report pages are literate scripts that call it. This section documents what the package offers, grouped by the job each part does.
Public and internal
Everything the package exports is public and documented here. The exported surface is what the report pages, the fit registry and the scripts use, and it is what a reader should build on. The vector observation distributions are declared public without being exported, and are documented with the observation models. Anything else is an implementation detail, kept on the internals page, and may change without notice.
The groups
The groups follow the order in which a fit runs.
| Group | What it covers |
|---|---|
| Data and constants | Loading and freezing the situation-report data, and the fixed quantities |
| Renewal and delays | The renewal recursion, the delay convolutions and the growth-rate conversions |
| Priors and latent submodels | Turing submodels for the epidemiological and surveillance processes |
| Observation models | One submodel per reported data stream |
| Joint and single-stream models | The composers that assemble a fittable model |
| Fitting | Running NUTS, initialising it, and the progress callbacks |
| Summaries and diagnostics | Posterior tables and sampler diagnostics |
| Forecasts, scoring and counterfactuals | Forecasting from the fitted model, scoring against what arrived, and the counterfactuals |
| Plotting | Every figure in the report |
Full index
BVDOutbreakSize.BASELINE_FITBVDOutbreakSize.CHAMLA_CONFIRMED_CENTRALBVDOutbreakSize.CHAMLA_CONFIRMED_W12BVDOutbreakSize.FROZEN_FITBVDOutbreakSize.ITURI_DAILY_TRAVELBVDOutbreakSize.ITURI_DAILY_TRAVEL_SDBVDOutbreakSize.ITURI_POPULATIONBVDOutbreakSize.JOINT_FITBVDOutbreakSize.M_PRIOR_DOUBLING_DAYSBVDOutbreakSize.OBSERVATION_STREAMSBVDOutbreakSize.ONSET_REPORT_MAX_DELAYBVDOutbreakSize.PROVINCE_CENTRESBVDOutbreakSize.PROVINCE_DISTANCE_DECAYBVDOutbreakSize.PROVINCE_FORECAST_METHODBVDOutbreakSize.PROVINCE_LABELSBVDOutbreakSize.PROVINCE_MEMBERSBVDOutbreakSize.PROVINCE_NAMESBVDOutbreakSize.PROVINCE_POPULATIONSBVDOutbreakSize.PROVINCE_SOURCE_CENTRESBVDOutbreakSize.PROVINCE_SOURCE_NAMESBVDOutbreakSize.PROVINCE_SOURCE_POPULATIONSBVDOutbreakSize.RENEWAL_START_LEADBVDOutbreakSize.REPORT_SCENARIOSBVDOutbreakSize.REPORT_SCENARIOS_CIBVDOutbreakSize.RT_INTERVENTION_RAMPBVDOutbreakSize.RT_WALK_LEADBVDOutbreakSize.STREAM_REPORTING_GRACE_DAYSBVDOutbreakSize.SUPERSEDED_FROZEN_FORECASTSBVDOutbreakSize.ZONE_FORECAST_METHODBVDOutbreakSize.ZONE_MAP_PROVINCESBVDOutbreakSize.BetaBinomialVectorBVDOutbreakSize.CensoredNegBinomialVectorBVDOutbreakSize.ForecastHorizonBVDOutbreakSize.MarkdownTableBVDOutbreakSize.NegBinomialVectorBVDOutbreakSize.SafeNegBinomialBVDOutbreakSize.SafePoissonBVDOutbreakSize.SplitCountVectorBVDOutbreakSize.StudentTVectorBVDOutbreakSize.ViablePriorBVDOutbreakSize._bounded_density!BVDOutbreakSize._composition_totalsBVDOutbreakSize._dedup_onset_blocksBVDOutbreakSize._patch_analysed_incrementsBVDOutbreakSize._patch_bvd_admissionsBVDOutbreakSize._patch_carriedBVDOutbreakSize._patch_confirmed_incrementsBVDOutbreakSize._patch_death_incrementsBVDOutbreakSize._patch_demandBVDOutbreakSize._patch_headlinesBVDOutbreakSize._patch_reportsBVDOutbreakSize._read_onset_curve_blocksBVDOutbreakSize.abscond_thinnedBVDOutbreakSize.abscond_thinned_flowBVDOutbreakSize.abscond_thinned_flowsBVDOutbreakSize.accumulate_occupancyBVDOutbreakSize.adjusted_rtBVDOutbreakSize.background_cfr_modelBVDOutbreakSize.background_pooling_modelBVDOutbreakSize.background_split_modelBVDOutbreakSize.background_walk_modelBVDOutbreakSize.bartlett_factorBVDOutbreakSize.bed_capacity_walk_modelBVDOutbreakSize.bias_sampleBVDOutbreakSize.bin_incrementsBVDOutbreakSize.break_step_centresBVDOutbreakSize.bvd_jointBVDOutbreakSize.bvd_zoneBVDOutbreakSize.capped_stock_forecastBVDOutbreakSize.cases_only_modelBVDOutbreakSize.cdf_nmaxBVDOutbreakSize.censored_delay_modelBVDOutbreakSize.censored_occupancy_modelBVDOutbreakSize.censoring_capBVDOutbreakSize.cfr_modelBVDOutbreakSize.clinical_stay_survivalBVDOutbreakSize.combined_callbackBVDOutbreakSize.comparison_tableBVDOutbreakSize.composition_sharesBVDOutbreakSize.composition_split_modelBVDOutbreakSize.confirmed_break_correctionBVDOutbreakSize.confirmed_break_offsetBVDOutbreakSize.confirmed_break_stepsBVDOutbreakSize.confirmed_cases_modelBVDOutbreakSize.confirmed_cfr_tableBVDOutbreakSize.confirmed_deaths_modelBVDOutbreakSize.confirmed_deaths_only_modelBVDOutbreakSize.confirmed_only_modelBVDOutbreakSize.confirmed_overdispersion_modelBVDOutbreakSize.confirmed_positives_modelBVDOutbreakSize.confirmed_positivity_windowsBVDOutbreakSize.convolve_delayBVDOutbreakSize.convolve_pmfBVDOutbreakSize.crps_decompositionBVDOutbreakSize.crps_sampleBVDOutbreakSize.cumulative_occupancy_offsetBVDOutbreakSize.cutoff_occupancyBVDOutbreakSize.dated_event_binsBVDOutbreakSize.dated_poisson_modelBVDOutbreakSize.death_ascertainment_modelBVDOutbreakSize.death_testing_fraction_modelBVDOutbreakSize.death_testing_scaling_modelBVDOutbreakSize.deaths_modelBVDOutbreakSize.deaths_only_modelBVDOutbreakSize.default_adtypeBVDOutbreakSize.default_breakpointBVDOutbreakSize.delay_corrected_cfrBVDOutbreakSize.delay_corrected_confirmed_cfrBVDOutbreakSize.deviation_knotsBVDOutbreakSize.diagnostic_contrastBVDOutbreakSize.diagnostic_contrast_tableBVDOutbreakSize.diagnostic_spread_tableBVDOutbreakSize.diagnostics_tableBVDOutbreakSize.dirichlet_multinomial_logpdfBVDOutbreakSize.discretise_censoredBVDOutbreakSize.divergence_location_tableBVDOutbreakSize.doubling_timeBVDOutbreakSize.drop_degenerate_fit_columnBVDOutbreakSize.drop_individual_fit_columnsBVDOutbreakSize.drop_rescanned_onset_windowsBVDOutbreakSize.drop_superseded_forecastsBVDOutbreakSize.enzyme_adtypeBVDOutbreakSize.euler_lotka_rBVDOutbreakSize.expand_vintage_rateBVDOutbreakSize.exponential_growth_modelBVDOutbreakSize.exports_deaths_modelBVDOutbreakSize.exports_deaths_only_modelBVDOutbreakSize.exports_joint_only_modelBVDOutbreakSize.exports_modelBVDOutbreakSize.exports_only_modelBVDOutbreakSize.family_diagnostics_tableBVDOutbreakSize.fit_callbackBVDOutbreakSize.fit_diagnosticsBVDOutbreakSize.fit_parallelBVDOutbreakSize.fit_zoneBVDOutbreakSize.fitted_onset_hazardBVDOutbreakSize.forecast_archiveBVDOutbreakSize.forecast_daysBVDOutbreakSize.forecast_drawsBVDOutbreakSize.forecast_onsetsBVDOutbreakSize.forecast_provincesBVDOutbreakSize.forecast_recovery_tableBVDOutbreakSize.forecast_reportedBVDOutbreakSize.forecast_score_by_horizonBVDOutbreakSize.forecast_score_by_releaseBVDOutbreakSize.forecast_score_by_vintageBVDOutbreakSize.forecast_score_overviewBVDOutbreakSize.forecast_streamBVDOutbreakSize.forecast_tableBVDOutbreakSize.forecast_vs_truthBVDOutbreakSize.freeze_observationsBVDOutbreakSize.future_knot_daysBVDOutbreakSize.gamma_delay_modelBVDOutbreakSize.gamma_median_whBVDOutbreakSize.gate_beforeBVDOutbreakSize.generation_interval_modelBVDOutbreakSize.generator_jointBVDOutbreakSize.genetic_seeding_modelBVDOutbreakSize.gravity_pullBVDOutbreakSize.grid_dateBVDOutbreakSize.haversine_kmBVDOutbreakSize.history_first_dateBVDOutbreakSize.history_last_dateBVDOutbreakSize.horizon_daysBVDOutbreakSize.implied_national_RtBVDOutbreakSize.implied_national_Rt_atBVDOutbreakSize.importation_from_kernelBVDOutbreakSize.incare_censusBVDOutbreakSize.independent_ascertainment_modelBVDOutbreakSize.infection_modelBVDOutbreakSize.interpolate_knotsBVDOutbreakSize.isolation_admission_modelBVDOutbreakSize.isolation_severity_modelBVDOutbreakSize.joint_fit_argsBVDOutbreakSize.knot_daysBVDOutbreakSize.lab_delay_modelBVDOutbreakSize.late_confirmed_modelBVDOutbreakSize.load_health_zonesBVDOutbreakSize.load_health_zones_geojsonBVDOutbreakSize.load_observationsBVDOutbreakSize.load_onset_curveBVDOutbreakSize.log_crps_sampleBVDOutbreakSize.lognormal_meansdBVDOutbreakSize.markdown_tableBVDOutbreakSize.median_interval_textBVDOutbreakSize.nbinomial_logtailBVDOutbreakSize.nearest_recordedBVDOutbreakSize.nejm_onset_to_sampleBVDOutbreakSize.nuts_sampleBVDOutbreakSize.onset_ascertainment_modelBVDOutbreakSize.onset_forecast_modelBVDOutbreakSize.onset_forecast_tableBVDOutbreakSize.onset_incidence_modelBVDOutbreakSize.onset_increments_modelBVDOutbreakSize.onset_nowcastBVDOutbreakSize.onset_nowcast_drawsBVDOutbreakSize.onset_report_FBVDOutbreakSize.onset_report_GBVDOutbreakSize.onset_report_anchorBVDOutbreakSize.onset_report_anchor_seriesBVDOutbreakSize.onset_report_anchor_seriesBVDOutbreakSize.onset_report_ascertainmentBVDOutbreakSize.onset_report_cdfBVDOutbreakSize.onset_report_cdf_extrapolatedBVDOutbreakSize.onset_report_cdf_tableBVDOutbreakSize.onset_report_expected_totalBVDOutbreakSize.onset_report_hazard_modelBVDOutbreakSize.onset_report_momentsBVDOutbreakSize.onset_report_momentsBVDOutbreakSize.onset_report_scaleBVDOutbreakSize.onset_report_scalesBVDOutbreakSize.onset_reporting_modelBVDOutbreakSize.onset_to_death_modelBVDOutbreakSize.onset_to_sample_logweightBVDOutbreakSize.onsets_only_modelBVDOutbreakSize.onsets_over_timeBVDOutbreakSize.parameter_diagnosticsBVDOutbreakSize.patch_capacity_share_modelBVDOutbreakSize.patch_fit_argsBVDOutbreakSize.patch_headlineBVDOutbreakSize.patch_infection_modelBVDOutbreakSize.patch_infectionsBVDOutbreakSize.patch_infections_with_stateBVDOutbreakSize.patch_membersBVDOutbreakSize.patch_overview_tableBVDOutbreakSize.patch_rt_modelBVDOutbreakSize.patch_summary_tableBVDOutbreakSize.plot_cfr_priorBVDOutbreakSize.plot_confirmed_cfrBVDOutbreakSize.plot_correlation_heatmapBVDOutbreakSize.plot_cumulative_casesBVDOutbreakSize.plot_cumulative_trajectoriesBVDOutbreakSize.plot_density_overlayBVDOutbreakSize.plot_diagnostic_contrastBVDOutbreakSize.plot_divergence_locationsBVDOutbreakSize.plot_estimate_comparisonBVDOutbreakSize.plot_estimate_evolutionBVDOutbreakSize.plot_evolution_by_groupBVDOutbreakSize.plot_forecastBVDOutbreakSize.plot_forecast_bedsBVDOutbreakSize.plot_forecast_beds_vs_truthBVDOutbreakSize.plot_forecast_crps_by_horizonBVDOutbreakSize.plot_forecast_flowsBVDOutbreakSize.plot_forecast_latentBVDOutbreakSize.plot_forecast_overlayBVDOutbreakSize.plot_forecast_relative_skillBVDOutbreakSize.plot_forecast_skill_by_cutoffBVDOutbreakSize.plot_forecast_skill_by_vintageBVDOutbreakSize.plot_forecast_vs_truthBVDOutbreakSize.plot_forecast_vs_truth_latentBVDOutbreakSize.plot_imports_patchesBVDOutbreakSize.plot_infections_patchesBVDOutbreakSize.plot_no_onward_deathsBVDOutbreakSize.plot_onset_nowcast_gridBVDOutbreakSize.plot_pairBVDOutbreakSize.plot_parameter_index_diagnosticsBVDOutbreakSize.plot_patch_summaryBVDOutbreakSize.plot_posterior_predictiveBVDOutbreakSize.plot_posterior_predictive_gridBVDOutbreakSize.plot_prior_predictiveBVDOutbreakSize.plot_projection_comparisonBVDOutbreakSize.plot_province_composition_ppcBVDOutbreakSize.plot_province_forecastBVDOutbreakSize.plot_province_forecast_detailBVDOutbreakSize.plot_province_mapBVDOutbreakSize.plot_province_mapBVDOutbreakSize.plot_province_split_ppcBVDOutbreakSize.plot_recoveryBVDOutbreakSize.plot_rhat_spreadBVDOutbreakSize.plot_rtBVDOutbreakSize.plot_rt_patchesBVDOutbreakSize.plot_rt_streamsBVDOutbreakSize.plot_rt_zonesBVDOutbreakSize.plot_scenario_comparisonBVDOutbreakSize.plot_start_date_pairBVDOutbreakSize.plot_stream_calibrationBVDOutbreakSize.plot_stream_pairsBVDOutbreakSize.plot_stream_trajectoriesBVDOutbreakSize.plot_vintage_conditional_ppcBVDOutbreakSize.plot_vintage_incidence_ppcBVDOutbreakSize.plot_zone_comparisonBVDOutbreakSize.plot_zone_composition_ppcBVDOutbreakSize.plot_zone_forecastBVDOutbreakSize.plot_zone_mapBVDOutbreakSize.plot_zone_map_panelsBVDOutbreakSize.plot_zone_rankingBVDOutbreakSize.plot_zone_sharesBVDOutbreakSize.pool_fractionBVDOutbreakSize.pooled_ascertainment_modelBVDOutbreakSize.pooled_dispersion_modelBVDOutbreakSize.posterior_summaryBVDOutbreakSize.precompile_workload_jointBVDOutbreakSize.predict_no_onward_deathsBVDOutbreakSize.production_jointBVDOutbreakSize.progress_callbackBVDOutbreakSize.province_bed_tableBVDOutbreakSize.province_care_observationsBVDOutbreakSize.province_cfr_tableBVDOutbreakSize.province_composition_modelBVDOutbreakSize.province_composition_panelsBVDOutbreakSize.province_count_panelsBVDOutbreakSize.province_counts_modelBVDOutbreakSize.province_distance_matrixBVDOutbreakSize.province_export_pressure_modelBVDOutbreakSize.province_forecast_archiveBVDOutbreakSize.province_forecast_headlineBVDOutbreakSize.province_forecast_tableBVDOutbreakSize.province_forecast_vs_truthBVDOutbreakSize.province_importation_kernelBVDOutbreakSize.province_increment_matrixBVDOutbreakSize.province_lab_increment_matrixBVDOutbreakSize.province_map_summaryBVDOutbreakSize.province_map_summaryBVDOutbreakSize.province_recent_countsBVDOutbreakSize.province_share_drawsBVDOutbreakSize.province_split_logpdfBVDOutbreakSize.province_split_modelBVDOutbreakSize.province_zone_valuesBVDOutbreakSize.r_to_R0BVDOutbreakSize.reconstruct_patch_rtBVDOutbreakSize.reconstruct_rtBVDOutbreakSize.reconstruct_zone_rtBVDOutbreakSize.reconstruct_zone_sharesBVDOutbreakSize.recovered_modelBVDOutbreakSize.recovery_dataBVDOutbreakSize.recovery_density_checkBVDOutbreakSize.recovery_fitBVDOutbreakSize.recovery_observed_varnamesBVDOutbreakSize.recovery_overallBVDOutbreakSize.recovery_probability_modelBVDOutbreakSize.recovery_seed_verdictsBVDOutbreakSize.recovery_summaryBVDOutbreakSize.recovery_tableBVDOutbreakSize.recovery_verdictBVDOutbreakSize.relative_multiplierBVDOutbreakSize.relative_multiplier_dimsBVDOutbreakSize.renewal_infectionsBVDOutbreakSize.renewal_infections_with_stateBVDOutbreakSize.reported_cases_modelBVDOutbreakSize.rt_walk_modelBVDOutbreakSize.safe_betabinomialBVDOutbreakSize.safe_nbinomialBVDOutbreakSize.safe_rateBVDOutbreakSize.safe_studenttBVDOutbreakSize.sampler_by_chain_tableBVDOutbreakSize.score_drawsBVDOutbreakSize.scored_overlayBVDOutbreakSize.seed_at_renewal_startBVDOutbreakSize.seed_infectionsBVDOutbreakSize.seeding_ageBVDOutbreakSize.select_daily_releasesBVDOutbreakSize.select_fit_roleBVDOutbreakSize.severity_enrichment_modelBVDOutbreakSize.sigmoid_rampBVDOutbreakSize.simulate_recoveryBVDOutbreakSize.specimen_intensity_modelBVDOutbreakSize.stick_breaking_loglikBVDOutbreakSize.stream_calibrationBVDOutbreakSize.stream_first_dateBVDOutbreakSize.stream_forecast_columnsBVDOutbreakSize.stream_idBVDOutbreakSize.stream_last_dateBVDOutbreakSize.stream_report_statusBVDOutbreakSize.stream_reportingBVDOutbreakSize.streams_tableBVDOutbreakSize.sum_to_zeroBVDOutbreakSize.sum_to_zero_basisBVDOutbreakSize.sum_to_zero_factorBVDOutbreakSize.sum_to_zero_momentsBVDOutbreakSize.summary_tableBVDOutbreakSize.surveillance_dispersion_modelBVDOutbreakSize.tensorboard_callbackBVDOutbreakSize.test_positivity_modelBVDOutbreakSize.test_sensitivity_modelBVDOutbreakSize.test_specificity_modelBVDOutbreakSize.traveller_volume_modelBVDOutbreakSize.treatment_flow_defaultsBVDOutbreakSize.treatment_flow_modelBVDOutbreakSize.treatment_forecast_modelBVDOutbreakSize.treatment_only_modelBVDOutbreakSize.two_clock_confirmedBVDOutbreakSize.uptoBVDOutbreakSize.viable_prior_initBVDOutbreakSize.vintage_increments_modelBVDOutbreakSize.vintage_obsBVDOutbreakSize.with_horizonBVDOutbreakSize.worst_parameters_tableBVDOutbreakSize.zone_composition_calibrationBVDOutbreakSize.zone_composition_drawsBVDOutbreakSize.zone_composition_logpdfBVDOutbreakSize.zone_composition_ppcBVDOutbreakSize.zone_correlation_factorsBVDOutbreakSize.zone_cumulative_fallsBVDOutbreakSize.zone_deformationBVDOutbreakSize.zone_delay_operatorBVDOutbreakSize.zone_diagnostics_tableBVDOutbreakSize.zone_draw_mixingBVDOutbreakSize.zone_fit_inputsBVDOutbreakSize.zone_fixed_termsBVDOutbreakSize.zone_forecastBVDOutbreakSize.zone_forecast_archiveBVDOutbreakSize.zone_forecast_blockBVDOutbreakSize.zone_forecast_drawsBVDOutbreakSize.zone_forecast_probabilitiesBVDOutbreakSize.zone_forecast_scoresBVDOutbreakSize.zone_forecast_tableBVDOutbreakSize.zone_forecast_truthBVDOutbreakSize.zone_forecast_vs_truthBVDOutbreakSize.zone_forwardBVDOutbreakSize.zone_geojson_pathBVDOutbreakSize.zone_importation_blocksBVDOutbreakSize.zone_increment_matrixBVDOutbreakSize.zone_infectionsBVDOutbreakSize.zone_initial_sharesBVDOutbreakSize.zone_interpolation_weightsBVDOutbreakSize.zone_keyBVDOutbreakSize.zone_last_case_datesBVDOutbreakSize.zone_meld_blockBVDOutbreakSize.zone_meld_checkBVDOutbreakSize.zone_overview_tableBVDOutbreakSize.zone_parent_epsilonBVDOutbreakSize.zone_parent_extractBVDOutbreakSize.zone_parent_inputsBVDOutbreakSize.zone_parent_scaleBVDOutbreakSize.zone_patch_infectionsBVDOutbreakSize.zone_reattribution_daysBVDOutbreakSize.zone_recent_casesBVDOutbreakSize.zone_report_incrementsBVDOutbreakSize.zone_report_pre_rowsBVDOutbreakSize.zone_sampler_diagnosticsBVDOutbreakSize.zone_score_keyBVDOutbreakSize.zone_score_rowsBVDOutbreakSize.zone_share_renewalBVDOutbreakSize.zone_subsetBVDOutbreakSize.zone_summary_tableBVDOutbreakSize.zone_week_midpoints