Hello, Statalisters

I am working with an Unbalanced Panel Data with information about sales, capital stock, raw materials, workforce, etc at the firm-level. I need to generate a dummy that takes tha value of 1 for the whole firm (observations with the same ID) when at least one of the observations in the firm satisfies a condition: for instance, sales_growth>100000.

I will really appreciate your help, best regards



Jairo