Skip to content

Add latency adjustment #279

Closed
Closed
@dajmcdon

Description

@dajmcdon

See the implementation here: https://github.com/cmu-delphi/exploration-tooling/blob/77d7e5eb95e4b17f40567430b0233f6b24cf100a/R/latency_adjusting.R#L11.

  • One possibility is as an argument to step_epi_ahead().
    • pros: easier adjustment in current canned methods. Just add an argument to all the canned steps and proceed.
    • cons: limits the flexibility to simply shifting based on explicit missingness (or carefully specified target_date). If the target_date is autocalculated based on the as_of for the epi_df, the ahead could shift massively (say when using finalized data).
  • The other is as a separate (new) step.
    • pros: much more flexibility, if needed (do we?)
    • cons: more difficult to propagate through downstream.

Deliverables:

  • A new / adjusted step.
  • Propagate throughout examples / vignettes where necessary.
  • Check that all canned forecaster workflows operate appropriately.
  • Add a vignette describing the behaviour and alternatives (LOCF implementation, imputing using steps in {recipes})
  • Adjust get_test_data() as needed

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions