panel_duplicates() returns unit-time combinations that appear more than
once in a panel dataset.
Details
Duplicate unit-time cells occur when the same panel unit appears more than once in the same time period. These duplicates can create problems for panel completion, fixed effects models, difference-in-differences designs, and other longitudinal-data workflows.
The function does not modify, drop, aggregate, or impute the data.