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
Frequency of TransactionHello Statlist, hope everyone is in good condition I've yearly dataset about supplier sale from maj…
Problem saving first-stage F-statistic using -outreg2- after -xtivreg2-Dear Statalisters, I have a problem saving with -outreg2- the F-statistic of the first-stage regress…
Mixed Results LM-Test and Hausman-TestHello everyone, I am running some regression on my dataset and I do get mixed results which is very…
Can't generate my string daily data into proper datesHi! I'm a struggling university student in her last year and I've got this assignment worth 100% of …
Generating New Variable with several values of one existing variable using "Wildcards"Hello Statalist, I am trying to generate a new variable based on an existing variable. The existing…
Subscribe to:
Post Comments (Atom)
0 Response to Creating Dummy Variable for Years
Post a Comment