Process BRMS log-linear fits of recent trends
Source:R/process_recent_trend_fits.R
process_recent_trend_fits.Rd
Process BRMS log-linear fits of recent trends
Usage
process_recent_trend_fits(
hosp_fit,
ww_fit,
forecast_date,
location,
scenario,
processed_output_dir,
figure_ext = "pdf",
n_lab_sites_plot = 10,
max_rhat = 1.02,
min_neff_ratio = 0.05,
max_frac_divergent = 0.05
)
Arguments
- hosp_fit
brms::brmsfit object for the hospital admissions trend.
- ww_fit
brms::brmsfit object for the wastewater trend.
- forecast_date
forecast_date for the trend fits.
- location
Location for the trend fits.
- scenario
Wastewater data availability scenario for the trend fits.
- processed_output_dir
Base directory for processed output (processed output will be saved in a subdirectory specific to the
forecast_date
,location
andscenario
. Seeforecast_output_path()
.- figure_ext
File extension for figures, without the
.
, e.g."pdf"
or"png"
. Default"pdf"
.- n_lab_sites_plot
Maximum number of lab-sites for which to plot wastewater trends. Default
10
.- max_rhat
maximum allowable r-hat value. Default 1.01
- min_neff_ratio
maximum allowable ratio of effective sample size to nominal sample size. Default 0.1.
- max_frac_divergent
maximum allowable fraction of divergent transitions. Default 0.01 (1%).