Xvalid_all function

A function to compute cross-validation errors

A function to compute cross-validation errors

Xvalid_all(func, mf, maxL, n.fold, minbucket, minsplit, cp, lookahead)

Arguments

  • func: the function used to fit the model
  • mf: the data set with formula specified
  • maxL: the maximum number of splits
  • n.fold: the number of folds
  • minbucket: the minimum number of the studies in a terminal node
  • minsplit: the minimal number of studies in a parent node to be split
  • cp: the stopping rule for decrease of between-subgroups Q. Any split that does not decrease the between-subgroups Q is not attempted.
  • lookahead: an argument indicating whether to apply the "look-ahead" strategy when fitting the tree
  • Maintainer: Juan Claramunt
  • License: GPL (>= 2)
  • Last published: 2020-07-10

Useful links