Create sequential counter that restarts on a condition within panel data groups [duplicate]

Leave a Comment