Library: | xclust |
See also: | cartsplit cartsplitopt cartcv leafnum maketr pred prederr prune prunecv pruneseq prunetot ssr |
Macro: | kuva | |
Description: | Makes a picture of a regression tree. |
Usage: | kuva (cs {, stri}) | |
Input: | ||
cs | list of vectors: data structure which represents a binary tree and is produced by cartsplit procedure, contains vectors .. cs.val, cs.vec, cs.mean, cs.ssr, cs.nelem. See cartsplit for the description of cs. | |
stri | string: optional argument, either missing, "nelem", "ssr" or "mean". |
; loads the library xclust library ("xclust") ;let us generate a tree by cartsplit procedure x1=#(0,0,0,0,1,1,1,1,1,2) x2=#(0,0,0,0,0,0,0,1,1,1) x=x1~x2 y=#(0,0,0,0,100,100,100,120,120,120) cs=cartsplit(x,y,#(0,1)) cs kuva(cs) kuva(cs,"mean")
Library: | xclust |
See also: | cartsplit cartsplitopt cartcv leafnum maketr pred prederr prune prunecv pruneseq prunetot ssr |