Description Usage Arguments Value Author(s)
This function finds non-event days that are near events (e.g. the day after a heat waves or ozone events). The days are potentially excluded as potential control days when using matching approachs.
1 |
date |
A vector of dates. |
x |
The varibale to be lagged |
lags |
The number of days the variable should be lagged |
by |
A vector of ids or a matrix with columns as the id variables. The events will be found separately within each unique combination of id variables. This is optional. |
Returns a data.table with lagged exposures as well as the date and by variables.
Ander Wilson
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.