Skip to content

Commit 0212951

Browse files
committed
linting
1 parent 3011fc6 commit 0212951

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ Config/testthat/edition: 3
6767
Encoding: UTF-8
6868
LazyData: true
6969
Roxygen: list(markdown = TRUE)
70-
RoxygenNote: 7.2.1
70+
RoxygenNote: 7.2.2

vignettes/epipredict.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ out_q <- arx_forecaster(jhu, "death_rate", c("case_rate", "death_rate"),
154154
The column `.pred_dstn` in the `predictions` object is actually a "distribution" here parameterized by its quantiles. For this default forecaster, these are created using the quantiles of the residuals of the predictive model (possibly symmetrized). Here, we used 23 quantiles, but one can grab a particular quantile
155155

156156
```{r q1}
157-
quantile(out_q$predictions$.pred_distn, p = .4)
157+
head(quantile(out_q$predictions$.pred_distn, p = .4))
158158
```
159159

160160
Or extract the entire distribution into a "long" `epi_df` with `tau` being the probability and `q` being the value associated to that quantile.
@@ -172,7 +172,7 @@ Further simple adjustments can be made using the function.
172172
arx_args_list(
173173
lags = c(0L, 7L, 14L), ahead = 7L, min_train_window = 20L,
174174
forecast_date = NULL, target_date = NULL, levels = c(0.05, 0.95),
175-
symmetrize = TRUE, nonneg = TRUE, quantile_by_key = TRUE
175+
symmetrize = TRUE, nonneg = TRUE, quantile_by_key = "geo_value"
176176
)
177177
```
178178

0 commit comments

Comments
 (0)