You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/smooth-qr.Rmd
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,9 @@ knitr::opts_chunk$set(
19
19
20
20
# Introducing smooth quantile regression
21
21
22
-
Whereas the standard application of time-series forecasting techniques has been to forecast a single horizon, in multi-period forecasting, the goal is to forecast several horizons simultaneously. This is useful in epidemiological applications where decisions are based on the trend of a signal.
22
+
Whereas other time-series forecasting examples in this package have used (direct) models for single horizons, in multi-period forecasting, the goal is to (directly) forecast several horizons simultaneously. This is useful in epidemiological applications where decisions are based on the trend of a signal.
23
23
24
-
The idea underlying smooth quantile regression is that the future can be approximated by a smooth curve. This novel approach from [Tuzhilina et al., 2022](https://arxiv.org/abs/2202.09723) enforces smoothness across the horizons and can be applied to point estimation by regression or interval prediction by quantile regression. Our focus in this vignette is the latter.
24
+
The idea underlying smooth quantile regression is that set forecast targets can be approximated by a smooth curve. This novel approach from [Tuzhilina et al., 2022](https://arxiv.org/abs/2202.09723) enforces smoothness across the horizons and can be applied to point estimation by regression or interval prediction by quantile regression. Our focus in this vignette is the latter.
25
25
26
26
# Built-in function for smooth quantile regression and its parameters
27
27
@@ -269,14 +269,14 @@ For a more formal comparison between the two approaches, we could compare the te
269
269
```{r, message = FALSE}
270
270
baseline_preds_mae_df <- baseline_preds %>%
271
271
left_join(tedf_sub, by = c("geo_value", "target_date"))
272
-
group_by(ahead) %>%
272
+
group_by(ahead) %>%
273
273
mutate(error = abs(`0.5` - actual)) %>%
274
274
summarise(mean = mean(error)) %>%
275
275
mutate(type = "baseline")
276
276
277
277
smooth_preds_mae_df <- smooth_preds %>%
278
278
left_join(tedf_sub, by = c("geo_value", "target_date"))
279
-
group_by(ahead) %>%
279
+
group_by(ahead) %>%
280
280
mutate(error = abs(`0.5` - actual)) %>%
281
281
summarise(mean = mean(error)) %>%
282
282
mutate(type = "smooth")
@@ -334,7 +334,7 @@ Next, we apply the `wis_dist_quantile` function to get a WIS score for each stat
334
334
```{r}
335
335
smooth_preds_wis_df <- smooth_preds %>%
336
336
left_join(tedf_sub, by = c("geo_value", "target_date"))
0 commit comments