This function calculates the maximum lag among a set of variables.
Usage
get_max_lag(variable_names)
Arguments
- variable_names
A character vector specifying the names of
the variables to analyze.
Value
The maximum lag among the variables. If there are no lags detected
NA is returned.