Hi all,

1. I need to perform a regression with the log of house price (loglprice) as a dependent variable and the moment the household moved into the house for period 1999-2011 (yearquarter) as an independent variable.

The variable 'yearquarter' has the following format "yearqquarter", for instance "2001q3" and so on.
Is the following code correct or should I generate dummy variables for yearquarter first?

Code:
reg loglprice c.yearquarter

2. Then, I have to use the output of the regression to visualize this and get a graph with the logPrice in the Y-axis and the yearquarter in the X-axis.

My mentor told me to make use of 'margins', and 'marginsplot' to visualize the regression. Intuitively, it should be something like this, but obviously it does not work:

Code:
Code:
margins, at(yearquarter==(1999q1(1)2011q4)) atmean
marginsplot
Can anyone help me to construct this graph correctly?

Thanks!!