Hi, i want to create a dummy variable (group-wise). my data ranges between 2001 to 2010. Features of the dummy variables are below:
Condition 1. the dummy variable equals one if variable AQA value for firm i in year t is non-missing or non-zero
Condition 2. in condition 1, for example AQA value is non-zero in year 2004 for firm i, then i want dummy variable for firm i equals one from year 2004 to end year 2005, 2006, 2007, 2008, 2009, and 2010.
Related Posts with Creating dummy variable in Panel Data
Food Insecurity Experience ScaleHi, I hope all's well. I want to estimate FAO's Food Insecurity Experience Scale in STATA. Please c…
Relink in the do-editorDear All, what do the following commands do in the do-editor? relink show column headers (Stata 1…
tvdiff vs. eventddDear forum members I have a question about staggered diff-in-diff and event studies. I managed to f…
Meaning of alpha in xtpoissonDear all, I am estimating a random-effects Poisson regression with Gamma distribution, using -xtpoi…
@Attaullah Shah Error about command--asrol--@Attaullah Shah Dear Attaullah Shah,I use your latest command --asrol--,but if I run the command,I a…
Subscribe to:
Post Comments (Atom)
0 Response to Creating dummy variable in Panel Data
Post a Comment