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
Estimating adjusted medians and 95% CI using quantile regressionDear StataList: I am wishing to estimate age-adjusted median concentrations and 95% CIs of a labora…
Collapsing time variableHello all, I am quite new to stata and I need help with a simple question (I think), that I just ca…
Problem when running loops with forvalues command: error message: `i' invalid nameDear Statalist, I got a problem with running a loop. I give you my whole code, so you can see how v…
Renaming group of variables as varHello, Can anyone advise how to rename a group as variables as simply var1 var2 var3 etc. Currentl…
Merge m:1 using participant ID in matched case-control data - error messagesHi, I have a matched case control dataset with 3 controls to every case. I have data that I want to…
Subscribe to:
Post Comments (Atom)
0 Response to create an indicator
Post a Comment