Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed Oct 16, 2023
1 parent b7822db commit 20c823f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/dist.R
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,7 @@ mean.dist_spec <- function(x, ...) {
} else if (x$dist[id] == "gamma") {
return(x$mean_mean[id])
} else {
stop("Unknown distribution: ", x$dist[id])
stop("Unknown distribution: ", x$dist[id])
}
}, 0)
}
Expand Down
4 changes: 2 additions & 2 deletions data-raw/generation-time.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ library(here)
## Code for this estimation process is available here: https://github.com/seabbs/COVID19 # nolint
## We assume that a case cannot infect another case on the day of infection.
## Load raw MCMC output
gi <- data.table::setDT(readRDS(here::here("data-raw", "gi.rds")))
gi <- setDT(readRDS(here("data-raw", "gi.rds")))
## Check mean and standard deviation
example_generation_time <- dist_spec(
mean = median(gi$mean),
mean_sd = sd(gi$mean),
sd = median(gi$sd),
sd = median(gi$sd),
sd_sd = sd(gi$sd),
dist = "gamma",
max = 14L
Expand Down
3 changes: 2 additions & 1 deletion data-raw/incubation-period.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
library(EpiNow2)

## COVID-19 incubation period from Lauer et al., https://doi.org/10.7326/M20-0504
## COVID-19 incubation period from Lauer et al.,
## https://doi.org/10.7326/M20-0504

example_incubation_period <- dist_spec(
mean = 1.621,
Expand Down

0 comments on commit 20c823f

Please sign in to comment.