Hi all,

I want to generate a price index using the coefficients of the following regression:

with dependent variable= loglprice (log of house selling price)
and independent variable= hhmove (year moved into the house)

reg loglprice i.hhmove

I want to use the year coefficients of the output table of this regression to generate a price index.

A price index can be generated by taking the exponential transformation of the estimated year coefficients (var HHMOVE) and multiplying that by 100.

To do so, something like this should be entered in Stata I guess:

gen logcoef=log(coef)
gen priceindex=logcoef*100


The question is how can I use the year coefficients (coef?) from the output table?
I believe the 'parmest'- command can help but I am not sure.

Thanks.