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
Panel data with binary and group variables as independent variablesHello, I am new to Stata and Econometrics in general, and I am really struggling to choose the righ…
Generate dummy variables if it is the same day / monthI would like to generate two dummy variables: "same_month" and "same_day". Basically, by id and grou…
Question CEO Duality applying to whole firm in a yearHello everyone, For my thesis I have to investigate CEO Duality. CEO Duality is when the CEO of the…
Plotting trends of a binary variable over timeHi all, I am working with pooled cross sectional data and after having done probit and marginal eff…
The rank of the differenced variance matrix does not equal the number of coefficients being testedHi there, I have a panel data and I want to do Hausman Test but it keeps on showing this note: . …
Subscribe to:
Post Comments (Atom)
0 Response to Generating Dummy variables based on Monthly period
Post a Comment