Skip to content

Commit 636aeb9

Browse files
authored
Merge pull request #83 from epiforecasts/big-mark
separate thousands
2 parents b664480 + 3a5b6d7 commit 636aeb9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/descriptive.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ table_confint <- function(scores, group_var = NULL) {
3838

3939
table <- scores |>
4040
summarise(
41-
n_forecasts = n(),
41+
n_forecasts = format(n(), big.mark = ","),
4242
p_forecasts = round(n() / total_forecasts * 100, 1),
4343
n_models = n_distinct(Model),
4444
p_models = round(n_models / total_models * 100, 1),

report/results.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ per_week <- scores |>
5454
per_week <- summary(per_week$n_models)
5555
```
5656

57-
We evaluated a total `r n_forecasts` forecast predictions from `r n_models` forecasting models, contributed by `r nrow(n_teams)` separate modelling teams to the European COVID-19 Forecast Hub (Table \@ref(tab:table-scores)). `r sum(n_teams$n>1)` teams contributed more than one model. Participating models varied over time as forecasting teams joined or left the Hub and contributed predictions for varying combinations of forecast targets. Between `r round(per_week[["Min."]])` and `r round(per_week[["Max."]])` models contributed in any one week, forecasting for any combination of `r 2*4*32` possible weekly forecast targets (32 countries, 4 horizons, and 2 target outcomes). On average each model contributed `r round(model_forecasts[["Mean"]])` forecasts, with the median model contributing `r model_forecasts[["Median"]]` forecasts.
57+
We evaluated a total `r format(n_forecasts, big.mark = ",")` forecast predictions from `r n_models` forecasting models, contributed by `r nrow(n_teams)` separate modelling teams to the European COVID-19 Forecast Hub (Table \@ref(tab:table-scores)). `r sum(n_teams$n>1)` teams contributed more than one model. Participating models varied over time as forecasting teams joined or left the Hub and contributed predictions for varying combinations of forecast targets. Between `r round(per_week[["Min."]])` and `r round(per_week[["Max."]])` models contributed in any one week, forecasting for any combination of `r 2*4*32` possible weekly forecast targets (32 countries, 4 horizons, and 2 target outcomes). On average each model contributed `r format(round(model_forecasts[["Mean"]]), big.mark = ",")` forecasts, with the median model contributing `r model_forecasts[["Median"]]` forecasts.
5858

5959
```{r table-scores}
6060
print_table1(scores)

0 commit comments

Comments
 (0)