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
Modifying labels when appending datasetsI am appending datasets in which the same variable have different label values. In the example below…
"Equation not found" - Hurdle model using suestHi there, I am using Stata 15. I am trying to estimate the marginal effects for a logit-truncated n…
regression line confidence intervalPlease how do i provide a 95% confidence interval for the parameters of the regression line in stata…
How can I efficiently generate many dummy variables from substrings? (other than one by one using regexm)Excuse my terrible title, I struggled to communicate what I wanted to do in a concise way. I am wor…
predicted valueWhat is the predicted blood pressure for an average 13-year-old boy as estimated from the regression…
Subscribe to:
Post Comments (Atom)
0 Response to Creating Dummy Variable for Years
Post a Comment