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
Survey data- Pool Cross Sectional data with weights- What to do with weights?Dear all, I have a pooled cross sectional data ( weakly balanced, 9 different years wealth and inco…
IPTW - strategiesHi everyone, I'm evaluating whether increased dosage (number of completed sessions) of an behaviour…
creating a loopHi guys: as you can see, below are four parts of repetitive codes, and the only difference is ccode2…
Loops to make variables compatibleHi, I have a variable which has been coded differently in two datasets. (old one for year 2000 and n…
Testing significance for Alphas CAPMHello everybody, I have calculated monthly alphas and betas for monthly fund data from different po…
Subscribe to:
Post Comments (Atom)
0 Response to Same datapoint across different date formats
Post a Comment