Number of initial periods with coefficients constrained to zero. Default: mergefirst=1
q
Sets Q for the fourier expansion. Default: q=1.
graph
If TRUE, graph results. Default: graph=T
graph.conf
If TRUE, add confidence intervals to graph. Default: graph.conf=T
conf
Confidence level for intervals. Default: .95
stage3
If stage3 = NULL, no corrections for heteroskedasticty. If stage3="abs", uses the absolute value of the
first-stage residuals as the dependent variable in the second-stage regression. If stage3="square", uses the square of the
first-stage residuals as the dependent variable. Default: stage3=NULL.
stage3_xlist
List of explanatory variables for heteroskedasticity. By default, the single variable timesale = time1-time0 is
constructed and used as the explanatory variable when stage3="abs" or stage3="square". Alternatively, a formula can be provided for
a user-specified list of explanatory variables, e.g., stage3_xlist=~x1+x2. Important: note the "~" before the variable list.
print
If print=T, prints the regression results. Prints one stage only – the first stage when stage=NULL and
the final stage when stage3="square" or stage3="abs". Default: print=T.
Details
The repeat sales model is
y(t) - y(s) = δ(t) - δ(s) + u(t) - u(s)
where y is the log of sale price, s denotes the earlier sale in a repeat sales pair, and t denotes the later sale.
Each entry of the data set should represent a repeat sales pair, with price0 = y(s), price1 = y(t),
time0 = s, and time1 = t. The function repsaledata can help transfer a standard hedonic data set to a set of
repeat sales pairs.
The repeat sales model can be derived from a hedonic price function with the form
y_{i,t} = δ_t + X_i β + u_{i,t} where X_i is a vector of variables that are assumed constant over time.
repsalefourier replaces δ_t with a smooth continuous function, g(T_i) where T_i denotes the time of sale for observation i.
Letting g(T_i) = α_0 + α_1 z_i + α_2 z_i^2 + ∑_{i=1}^Q {λ_q sin(qz_i) + γ_q cos(qz_i) } ,
where z_i = 2 π (T_i - min(T_i))/(max(T_i) - min(T_i)) , the repeat sales model becomes y_{i,t} - y_{i,s} = g(T_i) - g(T_i^s) =
After imposing the constraint that the price index in the base time period equals zero, the index is constructed from the estimated regression using the following expression:
More details can be found in McMillen and Dombrow (2001).
Repeat sales estimates are sometimes very sensitive to sales from the first few time periods, particularly when the sample size is small.
The option mergefirst indicates the number of time periods for which the price index is constrained to equal zero. The default is
mergefirst = 1, meaning that the price index equals zero for just the first time period. The repsalefourier command does not have an
option for including an intercept in the model.
Following Case and Shiller (1987), many authors use a three-stage procedure to construct repeat sales price indexes that are adjusted for
heteroskedasticity related to the length of time between sales. Common specifications for the second-stage function are
e^2 = α0 + α1 (t-s) or |e| = α0 + α1 (t-s), where e represents the first-stage residuals.
The first equation implies an error variance of σ^2 = e^2 and the second equation leads to
σ^2 = |e|^2. The repsalefourier function uses a standard F test to
determine whether the slope cofficients are significant in the second-stage regression. The results are reported if print=T.
This equation is estimated by regressing y(t) - y(s) on z, z^2, sin(z)...sin(Qz), cos(z)...cos(Qz)
using the weights option in lm with weights = 1/sigma^2
Value
fit
Full regression model.
pindex
The estimated price index.
lo
The lower bounds for the price index confidence intervals.
hi
The upper bounds for the price index confidence intervals.
dy
The dependent variable for the repeat sales regression, dy = price1-price0.
xmat
The matrix of explanatory variables for the repeat sales regressions. dim(xmat) = 2 + 2Q.
References
Case, Karl and Robert Shiller, "Prices of Single-Family Homes since 1970: New Indexes for Four Cities," New England Economic Review (1987), 45-56.
McMillen, Daniel P. and Jonathan Dombrow, "A Flexible Fourier Approach to Repeat Sales Price Indexes," Real Estate Economics 29 (2001), 207-225.