Subject: | XploRe Application Guide |
See XploRe: |
Quantlet: | cart08 | |
Description: | finds the final regression tree for 20% of Boston Housing Data with numbers of observations and mean values | |
Download: | cart08.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,"nelem") ;plotcarttree(fin,"mean")
Subject: | XploRe Application Guide |
See XploRe: |