Hello!
Can anyone please help me with the commands for creating a dummy variable?
Currently, I have time series data between the years 2004-2019 (financial data).
I want to create a dummy variable for the years (2008,2009,2010) = 1, all other years 0. This will represent the financial crisis years. I have 6 independent variables and hoping for the 7th to be my dummy variable.
Anyway,
I'm really stuck on how to do this and don't know what the commands are.
Thanks everyone!
Related Posts with Creating Dummy Variable for Years
Marginal effects at representative valuesDear all, I am working with Stata's margins command and have some difficulties to interpret the mea…
fe and first-difference estimator with controls and weight in baseline yearI have been learning from Statalist for some years now. Thank you for being there for us! First time…
Interaction analysis - Problematic Wald test results- …
Drop if in rangeHello, how can I drop a group if there is a missing value in any variable per group. In the example…
How to force vertical lines to be above of all horizontal lines using twowayDear all, How do I force the gray area to be above the yellow areas in the graph below? Code: cle…
Subscribe to:
Post Comments (Atom)
0 Response to Creating Dummy Variable for Years
Post a Comment