Hi,
I am currently using an unbalanced panel with gaps in the timevar (it's a panel on parties in cabinets, with timevar the start_date of the cabinet recorded in %td, hence I have no consecutive timevar observation, they are all separated by gaps). I would like to create a simple lag, but it keeps generating all missing values. Is there a way to lag with respect to the previous, non missing value available?
Thanks,
Federico
I am currently using an unbalanced panel with gaps in the timevar (it's a panel on parties in cabinets, with timevar the start_date of the cabinet recorded in %td, hence I have no consecutive timevar observation, they are all separated by gaps). I would like to create a simple lag, but it keeps generating all missing values. Is there a way to lag with respect to the previous, non missing value available?
Thanks,
Federico
Comment