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
XTIVREG: Fixed-effect model with IV robust or non-robust? IV choice and normal se assumptions for FEI am currently working on my thesis on the impact of land title certificate on crop diversity index …
"Standalone" Arellano-Bond autocorrelation test and Test for heteroscedasticity when using gmmHello everyone, I am new to the list and I hope I am able to keep the rules of good conduct here. I …
xtscc error: "too many values r(134)";Hi, I am currently trying to estimate a Dynamic Panel Data Model (including a first-order lag of the…
using gammap and gammafit to estimate moments based probability and cumulative density functionsHi all, I have been trying to estimate household-and-period-specific conditional well-being probabil…
How to remove the first observation with a certain value and observations that occurred before that dateHello, I have a long dataset that includes many visits (oftentimes many visits within one person) a…
Subscribe to:
Post Comments (Atom)
0 Response to Creating Dummy Variable for Years
Post a Comment