You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a recipe step that does lagged percent changes.
Simplest case: given a target time and a reference time, compute (target - reference) / reference. For example, target=0 and reference=7 and signal is cases, we get a column pct_chg_7_cases = (cases_0 - cases_7) / cases_7
Allow target and reference to be scalars or vectors.
Assert that Reference > target.
Allow for padding or some behaviour to deal with 0-valued signal in the reference.
Allow for log version as well log(cases_0 / cases_7).
Create a recipe step that does lagged percent changes.
target
time and areference
time, compute(target - reference) / reference
. For example,target=0
andreference=7
and signal iscases
, we get a columnpct_chg_7_cases = (cases_0 - cases_7) / cases_7
log(cases_0 / cases_7)
.This is helpful for #5 .
The text was updated successfully, but these errors were encountered: