# \[ANN\] PanelShift.jl: Time-aware lags and leads in panel data

**URL:** <https://discourse.julialang.org/t/ann-panelshift-jl-time-aware-lags-and-leads-in-panel-data/93344>\
**Category:** Package Announcements\
**Tags:** economics, data, dataframes\
**Created:** [January 21, 2023, 11:24pm UTC](https://discourse.julialang.org/t/ann-panelshift-jl-time-aware-lags-and-leads-in-panel-data/93344 "2023-01-21T23:24:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RangeFu](https://avatars.discourse-cdn.com/v4/letter/r/e9c0ed/32.png) [@RangeFu](https://discourse.julialang.org/u/RangeFu)\
**Post date:** [January 21, 2023, 11:24pm UTC](https://discourse.julialang.org/t/ann-panelshift-jl-time-aware-lags-and-leads-in-panel-data/93344/1 "2023-01-21T23:24:50Z")

</div>

> **[GitHub - FuZhiyu/PanelShift.jl: Time-aware lags and leads in panel data.](https://github.com/FuZhiyu/PanelShift.jl)**
>
> Time-aware lags and leads in panel data. Contribute to FuZhiyu/PanelShift.jl development by creating an account on GitHub.

This is a little package that performs lags and leads with respect to a time vector. Gaps in the time vector are respected. This is a particularly common operation when dealing with unbalanced panel data with irregular missing periods.

The time vector has to be strictly increasing - this requirement allows the operation to be very efficient. For safety, every time it’ll check whether the time vector is sorted by default, but users can turn it off for performance-critical codes.

It is a very simple package but does the work. Comments and feedbacks are more than welcome!
