Hello friends,

I have panel data with repeated time values. The reason is that there are more than one observations for some years for some individuals. Variable spell counts for observations. The data is something like below

person_id spell year age wage cba

1364 1 2000 22 30 1

1364 2 2000 22 35 1

1364 3 2000 22 45 1

1364 1 2001 23 47 2

1364 1 2002 24 44 3

1365 1 2005 34 45 3

1365 2 2006 35 50 1

1366 3 2002 38 52 2

entry year is when spell==1, lets call it t0. Also, spell is uniquely identified when there are observations with repeated time values.

I want to regress wage 3 years after entry on age and cba at the entry (spell == 1) but time dummy is at the current year (same as wage, i.e. 3 years after entry). regression equation would be: wage_(t0+3) = b1age_t0 + b2 cba_t0 + year_dummy_(t0+3) if there is repeated time values for wage observation at t0+3 I would like to consider the first one appear in the data (i.e., the one with the smallest spell) for wage_t0+3.

Could you plz help me how I can do that? thanks.

More Taghi Ghadiri Abkenar's questions See All
Similar questions and discussions