# ehb3.cf multi-episode data nvar( dfile = rrdat.1, # data file ID [3.0] = c1, # identification number NOJ [2.0] = c2, # spell number TStart [3.0] = c3, # starting time TFin [3.0] = c4, # ending time SEX [2.0] = c5, # sex (1 men, 2 women) TI [3.0] = c6, # interview date TB [3.0] = c7, # birth date TE [3.0] = c8, # entry into labor market TMAR [3.0] = c9, # marriage date (0 if no marriage) PRES [3.0] = c10, # prestige of current job PRESN [3.0] = c11, # prestige of next job EDU [2.0] = c12, # highest educational attainment # define additional variables ORG [1.0] = 1 + 2 * (NOJ - 1), DES [1.0] = if lt(TFin,TI) then ORG + 1 else ORG, TFC [3.0] = if eq(NOJ,1) then TStart else pre(TFC), TSP [3.0] = TStart - TFC, TFP [3.0] = TFin - TFC + 1, ); edef( # define multi-episode data id = ID, # ID sn = NOJ, # spell number ts = TSP, # starting time tf = TFP, # ending time org = ORG, # origin state des = DES, # destination state );