Subject: | XploRe Application Guide |
See XploRe: |
Quantlet: | cart04 | |
Description: | finds the initial regression tree for 20% of Boston Housing Data | |
Download: | cart04.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) totleaves=leafnum(tr,1) totleaves plotcarttree(tr)
Subject: | XploRe Application Guide |
See XploRe: |