rpartA super-stripped down decision tree for when space and performance are critical
cartLite(x, y, weights = NULL, minsplit = 2, minbucket = 1, cp = 0,
maxcompete = 0, usesurrogate = 2, surrogatestyle = 0,
maxdepth = 3, xval = 0, save.fitted = FALSE, trace = 0, ...)Numeric vector or matrix / data frame of features i.e. independent variables
Numeric vector of outcome, i.e. dependent variable
Numeric vector: Weights for cases. For classification, weights takes precedence
over ipw, therefore set weights = NULL if using ipw.
Note: If weight are provided, ipw is not used. Leave NULL if setting ipw = TRUE. Default = NULL
[gS] Integer: Minimum number of cases that must belong in a node before considering a split. Default = 2
[gS] Integer: Minimum number of cases allowed in a child node. Default = round(minsplit/3)
[gS] Float: Complexity threshold for allowing a split. Default = .01
[gS] Integer: Maximum depth of tree. Default = 20
Logical: If TRUE, save fitted values in output. Default = FALSE