Version: 0.0.4
Title: The Ames Iowa Housing Data
URL: https://github.com/topepo/AmesHousing
BugReports: https://github.com/topepo/AmesHousing/issues
Description: Raw and processed versions of the data from De Cock (2011) http://ww2.amstat.org/publications/jse are included in the package.
License: GPL-2
Encoding: UTF-8
LazyData: true
ByteCompile: true
Depends: R (≥ 2.10)
Imports: dplyr, magrittr
RoxygenNote: 7.1.0.9000
Suggests: covr
NeedsCompilation: no
Packaged: 2020-06-23 19:56:43 UTC; max
Author: Max Kuhn [aut, cre], Dmytro Perepolkin [ctb], RStudio [cph]
Maintainer: Max Kuhn <max@rstudio.com>
Repository: CRAN
Date/Publication: 2020-06-23 20:10:03 UTC

Raw Ames Housing Data

Description

Summon the data described by De Cock (2011) where 82 fields were recored for 2,930 properties in Ames IA.

Details

From the data documentation reference, the columns include:

Value

ames_raw

a tibble

Source

De Cock, D. (2011). "Ames, Iowa: Alternative to the Boston Housing Data as an End of Semester Regression Project," Journal of Statistics Education, Volume 19, Number 3.

https://ww2.amstat.org/publications/jse/v19n3/decock/DataDocumentation.txt

http://ww2.amstat.org/publications/jse/v19n3/decock.pdf


Ames Public Schools

Description

Locations of local schools and outline of elementary school districts. Elementary school district boundaries are returned as sf object in CRS 4326

Details

The data set includes the school name and the geocodes.

Value

ames_schools_geo

a tibble


Create a Processed Version of the Ames Housing Data

Description

Create a Processed Version of the Ames Housing Data

Usage

make_ames()

make_ames_new()

make_ordinal_ames()

Details

For the processed version, the exact details can be found in the code of make_ames but a summary of the differences between these data sets and ames_raw is:

make_ordinal_ames is the same as make_ames but many factor variables were changed to class ordered (see below).

The documentation for ames_raw() contains descriptions of the columns although, as noted above, the column names in ames_raw() are slightly different from the processed versions.

make_ames_new() creates a data set of new properties. These were populated using less data sources than the original and lack a number of the condition and quality. Both properties were unsold at the time of this writing.

Value

A tibble with the data.

Examples

ames <- make_ames()
nrow(ames)
summary(ames$Sale_Price)

ames_ord <- make_ordinal_ames()
ord_vars <- vapply(ames_ord, is.ordered, logical(1))
names(ord_vars)[ord_vars]

Objects exported from other packages

Description

These objects are imported from other packages. Follow the links below to see their documentation.

magrittr

%>%