Hi,
I am plotting the mean of treatment and control groups. My data period (and naturally, my x-axis) is long so I would like to focus on the middle section of my graph and for this end, I use xlabel but it does not work.
I am working with quarterly data (qdate: 2016q3 etc.). I already formatted this date successfully via %tq and set my main time variable with xtset. I run the following code:
This does not work. It only puts the labels in the x-axis but it does not restrict the axis.
Start date: 2011q3 (x-axis value: 206)
End date: 2019q4 (x-axis value: 239)
My bonus question is to how to plot a fitting line for each of the variables before and after a cutoff date (pre and post intervention periods). How can I accomplish it with lfit?
I am plotting the mean of treatment and control groups. My data period (and naturally, my x-axis) is long so I would like to focus on the middle section of my graph and for this end, I use xlabel but it does not work.
I am working with quarterly data (qdate: 2016q3 etc.). I already formatted this date successfully via %tq and set my main time variable with xtset. I run the following code:
Code:
scatter std_mean_y1 qdate, connect(l) sort || scatter std_mean_y0 qdate, sort connect(l) xlabel(215(1)225)
Start date: 2011q3 (x-axis value: 206)
End date: 2019q4 (x-axis value: 239)
My bonus question is to how to plot a fitting line for each of the variables before and after a cutoff date (pre and post intervention periods). How can I accomplish it with lfit?
Comment