Skip to content

Commit 3834887

Browse files
committed
backtesting rmd rewrite
1 parent 14dfcd8 commit 3834887

File tree

3 files changed

+313
-208
lines changed

3 files changed

+313
-208
lines changed

R/step_adjust_latency.R

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,16 @@
2626
#' ) %>%
2727
#' as_epi_df(as_of = as.Date("2015-01-14"))
2828
#' ```
29-
#' If we're looking to predict the value on the 15th, forecasting from the 14th (the `as_of` date above),
30-
#' there are two issues we will need to address:
29+
#' If we're looking to predict the value on the 15th, forecasting from the 14th
30+
#' (the `as_of` date above), there are two issues we will need to address:
3131
#' 1. `"ca"` is latent by 2 days, whereas `"ma"` is latent by 1
32-
#' 2. if we want to use `b` as an exogenous variable, for `"ma"` it is latent by 3 days instead of just 1.
32+
#' 2. if we want to use `b` as an exogenous variable, for `"ma"` it is latent by
33+
#' 3 days instead of just 1.
3334
#'
3435
#' Regardless of `method`, `epi_keys_checked="geo_value"` guarantees tha the
35-
#' difference between `"ma"` and `"ca"` is accounted for by making the
36-
#' latency adjustment at least 2. For some comparison, here's what the various
37-
#' methods will do:
36+
#' difference between `"ma"` and `"ca"` is accounted for by making the latency
37+
#' adjustment at least 2. For some comparison, here's what the various methods
38+
#' will do:
3839
#'
3940
#' ## `locf`
4041
#' Short for "last observation carried forward", `locf` assumes that every day

man/step_adjust_latency.Rd

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

0 commit comments

Comments
 (0)