lag_within_x_latest: pull the value from lags when values starts indefinitely...

View source: R/revision_analysis.R

lag_within_x_latestR Documentation

pull the value from lags when values starts indefinitely being within prop of its latest value.

Description

pull the value from lags when values starts indefinitely being within prop of its latest value.

Usage

lag_within_x_latest(lags, values, prop = 0.2)

Arguments

lags

vector of lags; should be sorted

values

this should be a vector (e.g., a column) with length matching that of lags

prop

optional length-1 double; proportion


cmu-delphi/epiprocess documentation built on Feb. 22, 2025, 9:26 a.m.