I have a case similar to Labeling second axis in a twoway graph with two y-axes - Statalist.
I use -xtdidregress-, and postestimation command -trendplots-.
This produces two graphs: a left graph with "observed means", and a right graph with a "linear-trends model".
I reversed the time of the x-axis (because this is a DID in reverse setting). I reverse my time variable for this.
However, in the plot (only in the plot, not the model), I want to display the "real" time, i.e. 1 to 4 instead of 4 to 1.
To solve this, I use:
This produces the desired result in the left graph. However, -xlabel(, opt)- seems not to apply to the right graph.
Any ideas how to solve this? And if so, where could I check what the command -trendplots- actually produces? I suspect it uses a form of graph combine, in which case solving this should be similar.
I use -xtdidregress-, and postestimation command -trendplots-.
This produces two graphs: a left graph with "observed means", and a right graph with a "linear-trends model".
I reversed the time of the x-axis (because this is a DID in reverse setting). I reverse my time variable for this.
However, in the plot (only in the plot, not the model), I want to display the "real" time, i.e. 1 to 4 instead of 4 to 1.
To solve this, I use:
HTML Code:
label define waverevl 1 "4" 2 "3" 3 "2" 4 "1" label values waverev waverevl xtdidregress (cesd10astd `ctrls') ($treat), group($q) time(waverev) vce(cl $cl) estat trendplots, xlabel(, valuelabel)
Any ideas how to solve this? And if so, where could I check what the command -trendplots- actually produces? I suspect it uses a form of graph combine, in which case solving this should be similar.
Comment