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
twoway connected or xtlineYear Country FDI year 2000 Cambodia 4.0501412 2000 2001 Cambodia 3.742602 2001 2002 Cambodia 3.38289…
Why cannot I add note to this graph by using the following code?twoway (scatter astate year) (scatter awagepre year, yaxis(2)title(wage premium)) , ytitle(State emp…
Location Specific EffectsHello, I am estimating a regression model predicting the odds of openness to PREP among foreign born…
How to Lag Variables in a Three-Level Mixed Effects ModelDear Stata Listserv, I’m seeking help with how to lag variables in a three-level mixed effects mode…
Making it so that stset works when birth and death happen in the same yearI'm working on a project in which I need to perform survival analysis on a sample of firms. When I s…
Subscribe to:
Post Comments (Atom)
0 Response to create an indicator
Post a Comment