Dear Forum,
I try to add a vertical line to my illustration [twoway graph (plot: line)]. The x-axis is my time variable from a panel dataset, which was computed in the following way:
generate yearmo = ym(year, month)
format yearmo %tm
I now try to use the xline option to insert a vertical line on the x-axis, but Stata is not accepting any specified date e.g. 2015m3. I assume I am entering the date in a wrong format, but this is how the dates are specified when I look at the dataset. When I enter a random number e.g. 100, Stata accepts the option but I don't see a line.
Thank you very much in advance for your advice!
Regards,
Ross
I try to add a vertical line to my illustration [twoway graph (plot: line)]. The x-axis is my time variable from a panel dataset, which was computed in the following way:
generate yearmo = ym(year, month)
format yearmo %tm
I now try to use the xline option to insert a vertical line on the x-axis, but Stata is not accepting any specified date e.g. 2015m3. I assume I am entering the date in a wrong format, but this is how the dates are specified when I look at the dataset. When I enter a random number e.g. 100, Stata accepts the option but I don't see a line.
Thank you very much in advance for your advice!
Regards,
Ross
Comment