|
|
| Subject: | XploRe Application Guide |
| See XploRe: |
| Quantlet: | cart07 | |
| Description: | finds the final regression tree for 20% of Boston Housing Data | |
| Download: | cart07.xpl |
library("xclust")
randomize(10)
boston=read("bostonh")
boston=paf(boston,uniform(rows(boston))<0.20)
yvar=boston[,14]
xvar=boston[,1:13]
type=matrix(13)
type[4]=0
type[9]=0
opt=cartsplitopt("minsize",1,"mindev",0,"mincut",8)
tr=cartsplit(xvar,yvar,type,opt)
fin=prune(tr,0.9)
plotcarttree(fin)
| Subject: | XploRe Application Guide |
| See XploRe: |