Subject: | XploRe Application Guide |
See XploRe: |
Quantlet: | cart05 | |
Description: | finds the subtree consisting of 20 leaves for 20% of Boston Housing Data | |
Download: | cart05.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) prtr=prunetot(tr,10) plotcarttree(prtr)
Subject: | XploRe Application Guide |
See XploRe: |