## explore.lag_search()


Correlate `y` with `x` lagged 0 to `max_lag` periods and pick the strongest lag.


Usage

``` python
explore.lag_search(
    y,
    x,
    max_lag,
)
```


`y` and `x` share an index (consecutive periods). Raises [ExploreError](ExploreError.md#dazflow.ExploreError) when fewer than three periods have the target and every lag present.
