Hi everybody
It is my very first post on Statalist, so please forgive me for my elementary problems in building formulas.
I'm working on a dataset that includes information about stock ownership for several firms over time.
I have several identifiers for firms, owners, quarters, years and the percentage of ownership. I just need to count the number of quarters in which the ownership of a specific person in a specific firm is stable or increasing. The dataset is widely unbalanced so the period under examination changes for individuals and firms. I tried to concatenate "firms" and "owner" and I built a counter for the quarters to have the xtset identifiers, but then my trials with lagged values and so on were uneffective.
Thanks in advance for any suggestion.
It is my very first post on Statalist, so please forgive me for my elementary problems in building formulas.
I'm working on a dataset that includes information about stock ownership for several firms over time.
I have several identifiers for firms, owners, quarters, years and the percentage of ownership. I just need to count the number of quarters in which the ownership of a specific person in a specific firm is stable or increasing. The dataset is widely unbalanced so the period under examination changes for individuals and firms. I tried to concatenate "firms" and "owner" and I built a counter for the quarters to have the xtset identifiers, but then my trials with lagged values and so on were uneffective.
Thanks in advance for any suggestion.
Comment