- cross =
cartcv(x, y, type, opt, wv)
- cross-validation is done by this quantlet, which calculates
the sequence of
values, number of leaves of the corresponding
pruned subtrees, estimates of the expected values of the mean squared
residuals and their standard errors
- ln =
leafnum(cs, node)
- gives the number of leaves for a given tree
- res =
ssr(cs, node)
- calculates the sum of squared residuals
- enn = pred (tr, x, type)
- calculates the prediction of the regression tree for a certain point
- mssr =
prederr(tr, x, y, type)
- calculates the sum of prediction errors for given tree and
number of
and
values
|