Hi All,
I have dataset that resembles the following:
In the above dataset, I have information on y and x, by individual (identified by id) and year.. There is a big jump in my data of new individuals in 1991. In the above, as can be seen, observation with id=5 is new in 1991 ( non existent in 1990). My results are quite sensitive to the inclusion of these new individuals. Suppose that the year 1990 is the "base" year, or the year before which individuals were more or less a constant set. Is there any way such that relative to 1990, I can tag new entrats? So for instance, I would like a dummy variable to be created, where individual 5 in 1991 would get a value of 1 (new entrants get a value of 1) whereas existing ones relative to the previous year get a value of 0?
Best Wishes,
CS
I have dataset that resembles the following:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(id year y x) 1 1990 123 32 2 1990 321 23 3 1990 3 23 4 1990 213 23 1 1991 213 123 2 1991 3 123 3 1991 123 213 4 1991 123 123 5 1991 23 23 end
In the above dataset, I have information on y and x, by individual (identified by id) and year.. There is a big jump in my data of new individuals in 1991. In the above, as can be seen, observation with id=5 is new in 1991 ( non existent in 1990). My results are quite sensitive to the inclusion of these new individuals. Suppose that the year 1990 is the "base" year, or the year before which individuals were more or less a constant set. Is there any way such that relative to 1990, I can tag new entrats? So for instance, I would like a dummy variable to be created, where individual 5 in 1991 would get a value of 1 (new entrants get a value of 1) whereas existing ones relative to the previous year get a value of 0?
Best Wishes,
CS
Comment