Dear All,
I have panel data on poisonings with 58 monthly observations (waves) per individual. Each wave there is a dummy for whether the person poisoned that month. For each wave I want to construct two variables- (1) whether a person has poisoned before or not and, (2) how many times a person has poisoned before. Because of the large number of waves I am reluctant to use the L. function to capture lags. Is there a more sensible way to do this? I suspect it shouldn't be hard but I am stuck.
Many thanks.
Sumedha.
I have panel data on poisonings with 58 monthly observations (waves) per individual. Each wave there is a dummy for whether the person poisoned that month. For each wave I want to construct two variables- (1) whether a person has poisoned before or not and, (2) how many times a person has poisoned before. Because of the large number of waves I am reluctant to use the L. function to capture lags. Is there a more sensible way to do this? I suspect it shouldn't be hard but I am stuck.
Many thanks.
Sumedha.
Comment