Skip to content

Commit 65676a0

Browse files
committed
recompile d1a
1 parent 631e717 commit 65676a0

10 files changed

+1596
-29
lines changed

_freeze/slides/day1-afternoon/execute-results/html.json

+2-2
Large diffs are not rendered by default.

_freeze/slides/day1-afternoon/figure-revealjs/nowcast-fun-plot-results-1.svg

+2-4
Loading

_freeze/slides/day1-afternoon/figure-revealjs/nowcast-smoothed-vis-1.svg

+3-5
Loading

_freeze/slides/day1-afternoon/figure-revealjs/regression-nowcast-plot-linreg-1.svg

+390
Loading

_freeze/slides/day1-afternoon/figure-revealjs/regression-nowcast-plot-quantreg-1.svg

+400
Loading

slides/day1-afternoon.qmd

+4-9
Original file line numberDiff line numberDiff line change
@@ -1605,7 +1605,7 @@ knitr::kable(nowcast_check)
16051605
#| eval: true
16061606
16071607
all_nowcast_dates = nchs_archive$DT |>
1608-
filter(time_value >= as.Date("2021-01-10")) |>
1608+
filter(time_value >= as.Date("2022-01-01")) |>
16091609
distinct(time_value) |>
16101610
pull(time_value)
16111611
```
@@ -2036,7 +2036,6 @@ The first value here is a version of $Y_{\text{2020-11-30}}$ as it was reported
20362036

20372037
```{r regression-trial-nowcast-predictors-data}
20382038
#| echo: true
2039-
#| eval: false
20402039
predictors <- predictor_descriptions |>
20412040
pmap(function(varname, lag_days, predictor_name) {
20422041
get_predictor_training_data(nchs_ca_past_archive, varname, lag_days, predictor_name)
@@ -2069,7 +2068,7 @@ reported at our trial nowcast date $t$.
20692068

20702069
```{r regression-trial-nowcast-fit}
20712070
#| echo: true
2072-
#| eval: false
2071+
20732072
training_test <- full_join(predictors, target, by = c("geo_value", "time_value"))
20742073
20752074
training <- training_test |> drop_na()
@@ -2092,7 +2091,7 @@ pred
20922091

20932092
```{r regression-trial-nowcast-pred}
20942093
#| echo: true
2095-
#| eval: false
2094+
20962095
pred
20972096
```
20982097

@@ -2296,7 +2295,7 @@ reg4_settings <- c(reg2_settings, median = TRUE)
22962295
```
22972296

22982297
```{r regression-run-nowcasts-backtesting}
2299-
#| eval: false
2298+
23002299
hhs_hosp_archive <- pub_covidcast(
23012300
source = "hhs",
23022301
signals = "confirmed_admissions_covid_1d_7dav",
@@ -2346,7 +2345,6 @@ reg4_nowcasts <- hosp_mort_archive |>
23462345
## Data wrangling
23472346

23482347
```{r regression-nowcast-wrangling}
2349-
#| eval: false
23502348
ratio_nowcasts_archive <- nowcasts |>
23512349
filter(geo_value == "ca") |>
23522350
rename(time_value = target_date,
@@ -2383,7 +2381,6 @@ nowcast_comparison <-
23832381

23842382
```{r regression-nowcast-plot-linreg}
23852383
#| fig-width: 7
2386-
#| eval: false
23872384
nowcast_comparison |>
23882385
filter(target_date >= min(all_nowcast_dates) - 35,
23892386
!(Nowcaster %in% c("QuantReg model", "QuantReg + hosp"))) |>
@@ -2399,7 +2396,6 @@ nowcast_comparison |>
23992396

24002397
```{r regression-nowcast-plot-quantreg}
24012398
#| fig-width: 7
2402-
#| eval: false
24032399
24042400
nowcast_comparison |>
24052401
filter(target_date >= min(all_nowcast_dates) - 35,
@@ -2416,7 +2412,6 @@ nowcast_comparison |>
24162412

24172413
```{r regression-nowcast-eval-comparison}
24182414
#| echo: true
2419-
#| eval: false
24202415
24212416
n_models <- length(unique(nowcast_comparison$Nowcaster))
24222417
nowcast_comparison |>

slides/day1-afternoon_files/figure-revealjs/nowcast-fun-plot-results-1.svg

+2-4
Loading

slides/day1-afternoon_files/figure-revealjs/nowcast-smoothed-vis-1.svg

+3-5
Loading

slides/day1-afternoon_files/figure-revealjs/regression-nowcast-plot-linreg-1.svg

+390
Loading

slides/day1-afternoon_files/figure-revealjs/regression-nowcast-plot-quantreg-1.svg

+400
Loading

0 commit comments

Comments
 (0)