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
Vector autoregression modelsI am new to working with time series data. I am looking to see how sudden larges changes in the pric…
Comparing two groups using xtnbreg + power analysisDear Statalists, I do Research on the effects of employee stock ownership on individuals idea sugge…
Staggered Difference in Difference: How to properly regressHey everyone, ok so I'm completely new to Stata and I have no clue how to run my Staggered Differenc…
'F model statistic missing' when testing parallel trendHello everyone, There was a birth policy implemented only in urban area in 2015,and I’m trying to t…
Add legend using grqregHi, I want to add legend after running grqreg. the codes are . webuse auto, clear . sqreg price wei…
Subscribe to:
Post Comments (Atom)
0 Response to Creating Dummy Variable for Years
Post a Comment