Hello everyone i am really new to stata and i have an econometrics paper due in a couple days and i have to perform some time series analysis on the data i have.
I am using Monthly data from 2007-12-01 to 2019-10-01 in a "YMD" format, which i have formatted and declared as a time series data
I am trying to create an "Embargo" variable which takes the value of 1 from 2019-01-01 to 2019-10-01 and 0 for all months before that. So i would really appreciate it if someone could provide me with some help in how to go about this dummy variable generating process using a date/period argument.
I have tried several commands but none have seemed to work thus far so any input would be welcomed.
Related Posts with Generating Dummy variables based on Monthly period
Varlist required errorHello everyone, This might seem a very simplistic problem, but I am getting an error "varlist requi…
fractional probit regression with multilevel dataDear all, Previously, I used a fractional probit regression to estimate a model with a proportional…
How to perform firstage regression and overidentification testsHey everyone! I have panel data between 2014 and 2018 on multiple socioeconomic and demography fact…
Add a variable to a global variable list only if it is not already includedHi, I would like to add a variable to a global variable list only if they are not already included.…
How to expand yscale range in marginsplot with addplotUsing Stata/SE 16.1 I made two related Figures that should be easily comparable. This means that the…
Subscribe to:
Post Comments (Atom)
0 Response to Generating Dummy variables based on Monthly period
Post a Comment