Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -11,7 +11,7 @@ repos:
- id: detect-private-key

- repo: https://github.com/lorenzwalthert/precommit
rev: v0.4.3.9012
rev: v0.4.3.9020
hooks:
- id: style-files
args:
Expand Down
18 changes: 9 additions & 9 deletions functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,11 @@ plot_covid_data <- function(data) {
#'
#' @returns The plot of the posterior distribution of model parameters.
plot_lfmcmc_post_dist <- function(
lfmcmc_object,
init_params,
param_names,
seasons
) {
lfmcmc_object,
init_params,
param_names,
seasons
) {

accepted_params <- get_all_accepted_params(lfmcmc_object)
accepted_params <- lapply(seq_along(param_names), \(i) {
Expand Down Expand Up @@ -483,10 +483,10 @@ plot_lfmcmc_post_dist <- function(
#'
#' @returns The plot of the forecasted COVID-19 case counts.
plot_forecast <- function(
forecast_dist,
covid_data,
probs = c(0.025, 0.25, 0.5, 0.75, 0.975)
) {
forecast_dist,
covid_data,
probs = c(0.025, 0.25, 0.5, 0.75, 0.975)
) {
# Find 2.5%, 25%, 50%, 75%, and 97.5% quantiles
forecast_quantiles <- apply(
forecast_dist, 1,
Expand Down