Learn R Programming

mlbench (version 2.1-7)

BostonHousing: Boston Housing Data

Description

Housing data for 506 census tracts of Boston from the 1970 census. The data frame BostonHousing contains the original data by Harrison+Rubinfeld:1978, the dataf rame BostonHousing2 the corrected version with additional spatial information (see references below).

Usage

data("BostonHousing", package = "mlbench")
data("BostonHousing2", package = "mlbench")

Arguments

Format

The original data are 506 observations on 14 variables, medv being the target variable:

crimper capita crime rate by town
znproportion of residential land zoned for lots over 25,000 sq.ft
indusproportion of non-retail business acres per town
chasCharles River dummy variable (= 1 if tract bounds river; 0 otherwise)
noxnitric oxides concentration (parts per 10 million)
rmaverage number of rooms per dwelling
ageproportion of owner-occupied units built prior to 1940
disweighted distances to five Boston employment centres
radindex of accessibility to radial highways
taxfull-value property-tax rate per USD 10,000
ptratiopupil-teacher ratio by town
b\(1000(B - 0.63)^2\) where \(B\) is the proportion of blacks by town
lstatpercentage of lower status of the population
medvmedian value of owner-occupied homes in USD 1000's

The corrected data set has the following additional columns:

cmedvcorrected median value of owner-occupied homes in USD 1000's
townname of town
tractcensus tract
lonlongitude of census tract
latlatitude of census tract

References

Gilley+Pace:1996note[Provided corrections and examined censoring.] Pace+Gilley:1997note[Added georeferencing and spatial estimation.] Blake+Merz:1998, Gilley+Pace:1996, Harrison+Rubinfeld:1978, Pace+Gilley:1997

Examples

Run this code
data("BostonHousing", package = "mlbench")
summary(BostonHousing)

data("BostonHousing2", package = "mlbench")
summary(BostonHousing2)

Run the code above in your browser using DataLab