Hi all,

After performing this regression:

Code:
reg loglprice c.yearquarter
I would like to visualize the results of the regression using "margins" to obtain a graph with the log of Price in the Y-axis, and the yearquarter (i.e.2001q3) in the X-axis:

Intuitively, it should be something like this:

Code:
margins, at(yearquarter==(1999q1(1)2011q4)) atmean
marginsplot
I know that the format of yearquarter is not correct, but what do I need to change so that I can get the code to work?
I know it works with the variable months (1-12) instead of yearquarter.

Also, is it necessary to generate a dummy variable for yearquarter to perform the regression?

Thanks in advance!