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
Using a global within regress Code: global wc_mvp = 10 regress percent_funded novelty_score if wc > $wc_mvp returns invali…
Generalized Hausman test 'suest' after GMM estimation 'xtdpdgmm'Dear friends, I am trying to run a 'suest' generalized Hausman test after 'xtdpdgmm' estimation, I d…
Creating a variable that counts how many months since you started receiving a 1 for a certain variableHi, I have code set up in the following way (below). I have three important variables, mci= an id f…
Indicator Variable dropped from fixed effects regression resultsGood evening everybody, I have posted this question elsewhere in stata forum but I did not get any …
Crude incidence rate stratified by calendar yearI have estimated the overall crude incidence rate of diabetes in people with hypertension (the study…
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