py-econometrics / pyfixest

Fast High-Dimensional Fixed Effects Regression in Python following fixest-syntax
https://py-econometrics.github.io/pyfixest/pyfixest.html
MIT License
117 stars 27 forks source link

Implement PanelView function #482

Open s3alfisc opened 3 weeks ago

s3alfisc commented 3 weeks ago

Context

It's often useful (and also recommended, see this tweet) to study the treatment rollout in DiD settings.

In the R world, the panelView package supports functionality to easily inspect treatment rollout in a panel context

Task

Enrich the implementation of the panel_view function in #481.

It would be nice to add the following function arguments:

Additionally, the function should throw a warning if there is a missing time variable for a given cohort.