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
2SLS in non-linear models with count endogenous explanatory variableGreetings everyone, I specify two models in my study with two different dependent variables; one of…
PANEL DATA and UNIT ROOT TESTDear Stata users, I am conducting my research about CHINESE FDI IN AFRICA, my main purpose of the s…
Problem with macro in forvaluesHi! I'm trying to construct the variables for exporter-time and importer-time fixed effects for our …
How to select a specific part in a string variable?Greetings, I am cleaning data in a very large dataset, and would want to drop all records in a speci…
Comparing data among two string columnsDear Statalist members, I want to identify the political connections of the firms. For this I have c…
Subscribe to:
Post Comments (Atom)
0 Response to Generating Dummy variables based on Monthly period
Post a Comment