explore.lag_search()
Correlate y with x lagged 0 to max_lag periods and pick the strongest lag.
Usage
explore.lag_search(
y,
x,
max_lag,
)y and x share an index (consecutive periods). Raises ExploreError when fewer than three periods have the target and every lag present.