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
Interpretation of standardized coefficientsI know that we have previously discussed how the use of standardized coefficients may obfuscate resu…
Using georoute with zipcodesHi all, I'm trying to generate driving distance between a variable with zip codes only and a variab…
Export Table of Conditional MeansHi I was hoping to get some guidance on how to produce a specific kind of table that I have been una…
Panel Data - Fill in values for a dummy variable from a certain month onDear all, I am using an unbalanced panel data set with about 880,000 observations for n = 5000 unit…
Testing for uniform distributionThis thread suggests that to test for the sample uniform distribution quantile command can be used. …
Subscribe to:
Post Comments (Atom)
0 Response to Generating Dummy variables based on Monthly period
Post a Comment