
repsaledata(price,timevar,id)
The output of repsaledata is a data frame with 5 variables. If some of the original hedonic data set variables need to be included in the repeat sales data set, the original hedonic data set and the repsaledata data frame can be merged by the id variable.
id <- c(1,1,1, 2,2,2, 3,3,3, 4,4,4, 5,5,5)
timevar <- c(1,2,3, 1,2,2, 3,1,1, 1,1,2, 2,2,3)
price <- seq(1:15)
basedata <- data.frame(id,timevar,price)
basedata
rdata <- repsaledata(price,timevar,id)
rdata
Run the code above in your browser using DataLab