How to determine (complex) panel pattern?
问题 My question is closely related to existing discussions on Statalist like this one. I want to raise a new question because I want to look at more complex patterns of panels beyond numbers of consecutive spells. Say, given a panel of firms, I want to check how many years that firm owns no real estate property land == 0 before it buys some land > 0 . Or, even more sophisticatedly, how many years the firm's property is below some level land < 0.05 * land[s] where s refers to the year a firm