Description Usage Arguments Details
View source: R/createlagvars.R
Creates lagged explanatory and response variables for data in long format.
1 | createlagvars(data, vars, id, time = time, wide, filter_options)
|
data |
Name of dataframe that has been transformed in strm (object |
vars |
Response and explanatory variables to be lagged. |
id |
Group identifier (example: state). |
time |
Number of time periods in the dataset. Lags will be taken for each time period. Default is 2 time periods. For a spatial-only regression model, set |
wide |
Boolean indicator. Takes |
filter_options |
Additional arguments to be passed to |
Create lagged and transformed variables
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.