Dear all,
Y is a dummy variable (1 - crises occur, 0 - crises).
I have to crate a new variable X, that x =1, if within next 24 months a crises occur (in the next 24 month, Y has 1).
How can I code that X is searching in Y value from (A1:A24) in Stata?
Could you kindly help me.
Related Posts with How to create new variable X=1, if Y=1 in the 24 cells (A1:A24), and X=0, if in the 24 cells (A1:A24) =0
Trend analysis - ptrendHi Listers, I am interested in assessing the relationship between diabetes diagnosis (yes/no) and a…
Re-run regression command on different subsamplesDear all, I would like to run the following regression command on different subsamples of a dataset…
Firm/Entity Fixed EffectDear all, I try to include a Firm/Entity fixed effect in my regression model, but I cant specifical…
Baseline characteristics with multiple imputed dataDear all, I am working with multiple imputed data from a RCT with an intervention and a control gr…
How to collapse annual data into decade observations for panel dataHi, I have a dataset put together from the Penn World Tables, and I'm working to understand the rel…
Subscribe to:
Post Comments (Atom)
0 Response to How to create new variable X=1, if Y=1 in the 24 cells (A1:A24), and X=0, if in the 24 cells (A1:A24) =0
Post a Comment