-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathREADME.Rmd
68 lines (45 loc) · 2.42 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
output: github_document
---
[![Travis-CI Build Status](https://travis-ci.org/andykrause/hpiR.svg?branch=master)](https://travis-ci.org/andykrause/hpiR) [![CRAN status](https://www.r-pkg.org/badges/version/hpiR)](https://cran.r-project.org/package=hpiR) [![Coverage status](https://codecov.io/gh/andykrause/hpiR/branch/master/graph/badge.svg)](https://codecov.io/github/andykrause/hpiR?branch=master)
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-",
eval = FALSE
)
```
# hpiR
![](/images/hpiR.png){width=100px, height=100px}
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](https://github.com/andykrause/hpiR/blob/master/vignettes/introduction.Rmd) for more information on using the package.
Also, please log issues or pull requests on this [github page](http://www.github.com/andykrause/hpiR).
## Installation
You can install hpiR from github with:
**Install the released version from CRAN**
```{r, eval=FALSE}
install.packages("hpiR")
```
**Development version from GitHub:**
```{r, eval=FALSE}
#install.packages("devtools")
devtools::install_github("andykrause/hpiR")
```
## Example
This is a basic example which shows you how to solve a common problem:
```{r example}
library(hpiR)
# Load prepared data
data(ex_rtdata)
# Create an index
hpi <- rtIndex(trans_df = ex_rtdata,
estimator = 'robust',
log_dep = TRUE,
trim_model = TRUE,
smooth = TRUE)
```