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
Margins different between male and female?Clyde Schechter I ran this regression equation Code: reg income c.age i.educ i.gender c.workhour…
use of difference in unbalanced panel dataI am having unbalanced panel data of 84 countries, now the objective of my empirical investigation w…
graph with a small line?Dear All, I have this graph Array by the following data and code. Code: * Example generated by -da…
import many csv filesDear All, I generate many csv and excel files as Code: cd "E:\Stata\import data\manycsv" webuse g…
Calculating adjusted proportionsThere are examples of analyses using Stata (14) that calculates proportion of one variable by adjust…
Subscribe to:
Post Comments (Atom)
0 Response to Generating Dummy variables based on Monthly period
Post a Comment