Skip to content

Commit 21b4c85

Browse files
committed
local checks pass
1 parent d59a691 commit 21b4c85

8 files changed

+18
-16
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
^musings$
1313
^data-raw$
1414
^vignettes/articles$
15+
^.git-blame-ignore-revs$

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ importFrom(rlang,caller_env)
186186
importFrom(rlang,is_empty)
187187
importFrom(rlang,is_null)
188188
importFrom(rlang,quos)
189+
importFrom(smoothqr,smooth_qr)
189190
importFrom(stats,as.formula)
190191
importFrom(stats,family)
191192
importFrom(stats,lm)

R/cdc_baseline_forecaster.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#' ungroup() %>%
3434
#' filter(weekdays(time_value) == "Saturday")
3535
#'
36-
#' cdc <- cdc_baseline_forecaster(deaths, "deaths")
36+
#' cdc <- cdc_baseline_forecaster(weekly_deaths, "deaths")
3737
#' preds <- pivot_quantiles(cdc$predictions, .pred_distn)
3838
#'
3939
#' if (require(ggplot2)) {
@@ -46,7 +46,7 @@
4646
#' geom_ribbon(aes(ymin = `0.25`, ymax = `0.75`), fill = blues9[6]) +
4747
#' geom_line(aes(y = .pred), color = "orange") +
4848
#' geom_line(
49-
#' data = deaths %>% filter(geo_value %in% four_states),
49+
#' data = weekly_deaths %>% filter(geo_value %in% four_states),
5050
#' aes(x = time_value, y = deaths)
5151
#' ) +
5252
#' scale_x_date(limits = c(forecast_date - 90, forecast_date + 30)) +
@@ -150,15 +150,15 @@ cdc_baseline_forecaster <- function(
150150
#' @param nonneg Logical. Force all predictive intervals be non-negative.
151151
#' Because non-negativity is forced _before_ propagating forward, this
152152
#' has slightly different behaviour than would occur if using
153-
#' [layer_threshold_preds()].
153+
#' [layer_threshold()].
154154
#'
155155
#' @return A list containing updated parameter choices with class `cdc_flat_fcast`.
156156
#' @export
157157
#'
158158
#' @examples
159159
#' cdc_baseline_args_list()
160160
#' cdc_baseline_args_list(symmetrize = FALSE)
161-
#' cdc_baseline_args_list(levels = c(.1, .3, .7, .9), n_training = 120)
161+
#' cdc_baseline_args_list(quantile_levels = c(.1, .3, .7, .9), n_training = 120)
162162
cdc_baseline_args_list <- function(
163163
data_frequency = "1 week",
164164
aheads = 1:4,

R/layer_cdc_flatline_quantiles.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#' typically observed daily (possibly with missing values), but
2626
#' with weekly forecast targets, you would use `c(7, 14, 21, 28)`. But with
2727
#' weekly data, you would use `1:4`.
28-
#' @param quantiles Numeric vector of probabilities with values in (0,1)
28+
#' @param quantile_levels Numeric vector of probabilities with values in (0,1)
2929
#' referring to the desired predictive intervals. The default is the standard
3030
#' set for the COVID Forecast Hub.
3131
#' @param nsims Positive integer. The number of draws from the empirical CDF.
@@ -35,7 +35,7 @@
3535
#' @param nonneg Logical. Force all predictive intervals be non-negative.
3636
#' Because non-negativity is forced _before_ propagating forward, this
3737
#' has slightly different behaviour than would occur if using
38-
#' [layer_threshold_preds()].
38+
#' [layer_threshold()].
3939
#'
4040
#' @return an updated `frosting` postprocessor. Calling [predict()] will result
4141
#' in an additional `<list-col>` named `.pred_distn_all` containing 2-column

R/make_smooth_quantile_reg.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#'
2222
#' @seealso [fit.model_spec()], [set_engine()]
2323
#'
24-
#' @importFrom quantreg rq
24+
#' @importFrom smoothqr smooth_qr
2525
#' @examples
2626
#' tib <- data.frame(
2727
#' y1 = rnorm(100), y2 = rnorm(100), y3 = rnorm(100),

man/cdc_baseline_args_list.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/cdc_baseline_forecaster.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/layer_cdc_flatline_quantiles.Rd

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)