hw1_2010

hw1_2010 - Stat315B Elements of Statistical Learning II...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Stat315B Elements of Statistical Learning II Homework 1 We recommend using R for the computational problems of this Homework. R for Unix is installed on the leland systems. The Windows users can download for free the R package from http://cran.r-project.org/ - be sure to get version 1.4.1 or higher. In the class web page there are posted some R/Splus Tutorials. Splus is a wrapper around R, and most of the Splus commands work in R. The datasets income.data, income.big , and housetype.data along with the documentation files income.info and housetype.info can be found in the class web page in the Data section. at the R prompt. Help files are available. The graphical help system can be invoked with > help.start() . Alternately specific help file can be directly invoked: e.g > help (rpart) will display the rpart help file. To plot tree classifiers in a nice way, use the function post.rpart . It creates a postscript file (filename.ps) and places it into your working directory (like hw1 , for example). You can then view the tree using ghostview filename.ps or by simply printing out the file filename.ps. An alternative are the plot.rpart and text.rpart functions which will produce a tree diagram in the graphics window. Please present the tree in the output plots with a decent number of terminal nodes (say at most 10), if the optimal pruned tree is too big to properly fit in one page.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 3

hw1_2010 - Stat315B Elements of Statistical Learning II...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online