I am looping over different date variables in a graph, that will be my x-axis. The four variables are dates in %tm, %tq, and %th, %ty format. With them, I produce four graphs and then combining them.
I encounter a difficulty when I want to include a vertical xline at a certain date (e.g. 01jan2006) in each graph. When I specify the position of the x-line in %td format it gives me an error in the other cases and if I use values these will be different depending on whether it is measured in months quarters etc. I guess it's just not efficient to loop over type of dates, or is there some clever way to translate the position of the date?
Hope it is clear even without example, I am not sure which example dataset would be suitable to illustrate this.
Related Posts with Same datapoint across different date formats
Can STATA shows the p-value for each variable used in the discriminant functions?I get my results and I can interpret the coefficient of each independent variable in each function. …
Panel data preparation and xtreg functionHi I am new to econometrics and stata, and appreciate some help for the following qns related to my…
svydescribe for mi set dataI have been hunting around and trying everything I can think of but cannot figure out how to get the…
Recode VarHello How can we find duplicates in a database? Which command I can use to change the observations o…
Triple conditions such as relimp==relat==1 do not do what I expect them to do. Why? Where is this behaviour explained?Working on a problem posed in this thread https://www.statalist.org/forums/for...other-variable I di…
Subscribe to:
Post Comments (Atom)
0 Response to Same datapoint across different date formats
Post a Comment