Dear all,
Y is a dummy variable (1 - crises occur, 0 - crises).
I have to create a new variable X, that x =1, if within next 24 months a crises occur (in the next 24 month, Y has 1), and x=0, if in the next 24 months (A1:A24) =0
How can I code that X is searching in Y value from (A1:A24) in Stata?
Could you kindly help me.
Y is a dummy variable (1 - crises occur, 0 - crises).
I have to create a new variable X, that x =1, if within next 24 months a crises occur (in the next 24 month, Y has 1), and x=0, if in the next 24 months (A1:A24) =0
How can I code that X is searching in Y value from (A1:A24) in Stata?
Could you kindly help me.
Comment