From 1a4f3e7a8e10fd4d996c17bb8f90acbe81eb8658 Mon Sep 17 00:00:00 2001 From: "Daniel J. McDonald" Date: Mon, 11 Nov 2024 11:51:19 -0800 Subject: [PATCH] f-u styler --- vignettes/articles/smooth-qr.Rmd | 10 ++++++---- vignettes/epipredict.Rmd | 12 ++++++------ 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/vignettes/articles/smooth-qr.Rmd b/vignettes/articles/smooth-qr.Rmd index 8650e9f6..291d8cb7 100644 --- a/vignettes/articles/smooth-qr.Rmd +++ b/vignettes/articles/smooth-qr.Rmd @@ -300,10 +300,12 @@ to 7: ```{r, eval = FALSE} smooth_preds_list <- map(1:7, function(x) { - smooth_fc(edf, - degree = x, - quantiles = c(.1, .25, .5, .75, .9), - fd = fd) %>% + smooth_fc( + edf, + degree = x, + quantiles = c(.1, .25, .5, .75, .9), + fd = fd + ) %>% mutate(degree = x) }) %>% list_rbind() ``` diff --git a/vignettes/epipredict.Rmd b/vignettes/epipredict.Rmd index 0e1888dd..97bbcee7 100644 --- a/vignettes/epipredict.Rmd +++ b/vignettes/epipredict.Rmd @@ -259,8 +259,8 @@ package: ```{r ranger, warning = FALSE} out_rf <- arx_forecaster( - jhu, - outcome = "death_rate", + jhu, + outcome = "death_rate", predictors = c("case_rate", "death_rate"), trainer = rand_forest(mode = "regression") ) @@ -270,8 +270,8 @@ Or boosted regression trees with `{xgboost}`: ```{r xgboost, warning = FALSE} out_gb <- arx_forecaster( - jhu, - outcome = "death_rate", + jhu, + outcome = "death_rate", predictors = c("case_rate", "death_rate"), trainer = boost_tree(mode = "regression", trees = 20) ) @@ -281,8 +281,8 @@ Or quantile regression, using our custom forecasting engine `quantile_reg()`: ```{r quantreg, warning = FALSE} out_qr <- arx_forecaster( - jhu, - outcome = "death_rate", + jhu, + outcome = "death_rate", predictors = c("case_rate", "death_rate"), trainer = quantile_reg() )