This package contains the data described by De Cock (2011) where 82 fields were recored for 2,930 properties in Ames IA. Different versions of the data are available using the package.
To install the package from CRAN, use
install.packages("AmesHousing")
You can install the development version of AmesHousing from GitHub with:
# install.packages("devtools")
# devtools::install_github("topepo/AmesHousing")
install.packages("AmesHousing", repos = c('https://topepo.r-universe.dev', 'https://cloud.r-project.org'))
data(ames_raw), a tibble is attached with the data as it is found on the website.make_ames() a tibble is returned that has a processed version of the data (see notes below).make_ordered_ames() returns a similar tibble but several of the variables are formatted as ordered factors.The exact details can be found in the code of make_ames but a summary is:
PID and Order are removed.SalePrice was changed to Sale_Price.Split_or_Multilevel instead of 080)Bsmt_Qual was missing, this implies that there is no basement on the property. Instead of a missing value, the value of Bsmt_Qual was changed to No_Basement. Similarly, numeric data pertaining to basements were set to zero where appropriate such as variables Bsmt_Full_Bath and Total_Bsmt_SF.Garage_Yr_Blt contained many missing data and was removed.make_ordinal_ames is the same as make_ames but many ordinal data were changed to class ordered.