Skip to content

Commit

Permalink
Define pop in forecasting script
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkucharski committed Dec 5, 2024
1 parent d548466 commit 50eeac0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vignettes/gam-forecasting-workflow.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ weight_cases <- function(x){
Now we wrangle the Fiji 2014 data for forecasting and set our forecast horizon (how many weeks ahead we want to forecast) and the dates we would like our forecasts to start from.

```{r}
pop <- 342000
model_data <- fiji_2014 |>
dplyr::mutate(date_numeric = as.numeric(date - min(date) + 1)) |>
dplyr::arrange(date) |>
Expand All @@ -88,7 +90,6 @@ prediction_dates <- seq(from = as.Date("2014-01-06"), to = as.Date("2014-09-01")
We now generate 2-week ahead forecasts for each of our prediction dates.

```{r}
all_forecasts <- NULL
weekly_forecasts <- NULL
Expand Down

0 comments on commit 50eeac0

Please sign in to comment.