Download S-PLUS 7 Enterprise Developer User's Guide

Transcript
Building a Model
Table 6.1: bostonhousing.txt variables. (Continued)
Variable name
Description
MEDV
Median value of owner-occupied homes in
$1000s.
NOX
Nitric oxides concentration (parts per 10
million).
PTRATIO
Pupil-teacher ratio by town.
RAD
Index of accessibility to radial highways.
RM
Average number of rooms per dwelling.
TAX
Full-value property-tax rate per $10,000.
ZN
Proportion of residential land zoned for lots
over 25,000 square feet.
Source
The data are available from the University of California Irvine
Machine Learning Repository (http://www.ics.uci.edu/~mlearn/
MLRepository.html).
Note
The entire script for this example can be found in the sample directory on the S-PLUS installation
CD. By default, this sample is /samples/bigdata/boston.
Import the data
1. In the Commands window, type:
boston.housing.bd <importData(paste(getenv("SHOME"),
"/samples/bigdata/boston/bostonhousing.txt",
sep=""), stringsAsFactors=F, bigdata=T)
165