Hello Guys,
I need to create a dummy variable which is equal to one if an individual is hit by a crisis at age a and that stays one thereafter.
In my Data I already have a variable which shows whether an individual is hit by a crisis(==1) or not(==0).
But I can't figure our how to create an indicator which stays one after an indivdual is hit by a crises earlier.
Thanks in advance.
Oliver
Related Posts with create an indicator
Getting an error from putexcel set ..., openI have this simple line of code to setup my excel worksheet but I get the following error when I try…
Logit Regression Model / Plotting InteractionsHi everyone, I am working at my final paper and need some guidance. I want to look at the party id…
Coefplot: reduce spacing on y-axisHello everybody, I have a question about how to reduce the spacing between labels on the y-axis whe…
Looping over correlation functionI am trying to produce a dataset that includes the autocorrelations of a variable (ret) across group…
ICD 10 to ICD-9 mapping using GEMsHi stata users, anybody has any experience in using GEMs files to map backwards from icd10 to ICD10 …
Subscribe to:
Post Comments (Atom)
0 Response to create an indicator
Post a Comment