Hi guys, i'm not very able to use stata. For my thesis, I have a panel data(1970-2017) for different countries and a lot of variables.
In this dataset, there is a dummy (dhairendH) that is equal to one in the years where a country end a debt restructuration.
i would like to graph 3 different dependents variables (it is better if they are overlapped) depending on the 7 years after the restructuration, like the image attached.
Of course i can create lags of this dummy, but how can I create a graph where, on the y we have the dependent variable and on the x axis ONLY the 7 years after the restructuration? (and not all the years i.e. 1970-2017). The image attached maybe could give you an idea.
PS
The name of the the dependent variables are gini_disp, gini_cons and ginipretax. Obviously, I have variables years and CountryName. The name of the dummy is dhairendH
Array
Related Posts with graph of a dependent variable in specific years (panel data)
Bookmark in Stata 17The combobox is not refreshed on deleting a bookmark? Is there any way to collapse/expand bookmark (…
Options to plot yearly data for five years in a single graphHi All. I'd like to plot two different graphs using the same data. (1) yearly data over five waves…
Question on merge results not consistentHi Statalist community, I am trying to merge, but every time I run it using the same do.file I get …
GMM with binary outputDear, I am doing gmm for a system including 3 equations. In which, dependent variable of one equati…
there is somthing wrong when use tuples commandthe conditions are set: tuples ,cond(!(1&2) !(3&4) !(5&6) !(7&8) (!(9&10)&!(…
Subscribe to:
Post Comments (Atom)
0 Response to graph of a dependent variable in specific years (panel data)
Post a Comment