Skip to content
House Price Indexes in R
Branch: master
Clone or download
Latest commit 75821c8 Sep 30, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
R Add pair_id as output #56 Sep 30, 2019
data CRAN: Reducing package size and cleaning up description. Jul 17, 2018
man Add pair_id as output #56 Sep 30, 2019
tests Add pair_id as output #56 Sep 30, 2019
vignettes Remove knitr import Sep 25, 2019
.Rbuildignore Add: Cran release info Sep 26, 2019
.gitignore Add: Introduction Vignette Jan 24, 2018
.travis.yml Add: Coverage badge link Dec 19, 2018
CRAN-RELEASE Add: Cran release info Sep 26, 2019
DESCRIPTION Adding knitr Sep 25, 2019
NAMESPACE Cran and documentation fixes Sep 18, 2019
README.Rmd Correct spelling Sep 25, 2019 Doc: Adding documentation to 0.3.0 #49 Sep 24, 2019
codecov.yml Doc: Adding documentation to 0.3.0 #49 Sep 24, 2019
hpiR.Rproj Opening Project: Add description, ignore, etc. Nov 20, 2017

Travis-CI Build Status CRAN status Coverage status



This package intends to simplify and standardize the creation of house price indexes in R. It also provides a framework for judging the ‘quality’ of a given index by testing for predictive accuracy, volatility and revision. By providing these metrics various index methods (and estimators) can be accurately compared against each other.

While there are a (ever-increasing) variety of methods and models to use in house price index creation, this initial version (0.3.0) focuses on the two most common: repeat sales (transactions) and hedonic price. Base, robust and weighted estimators are provided when appropriate. Additionally, a new method using random forests and a post model interpretability method – partial dependence plots – is also used.

The package also includes a dataset of single family and townhome sales from the City of Seattle during January 2010 to December 2016 time period.

Please see the vignette for more information on using the package.

Also, please log issues or pull requests on this github page.


You can install hpiR from github with:

Install the released version from CRAN


Development version from GitHub:



This is a basic example which shows you how to solve a common problem:


  # Load prepared data

  # Create an index
  hpi <- rtIndex(trans_df = ex_rtdata,
                 estimator = 'robust',
                 log_dep = TRUE,
                 trim_model = TRUE,
                 smooth = TRUE)
You can’t perform that action at this time.