Build all the conditional inference trees
create_ctree(
given_ind,
x_train,
mincriterion,
minsplit,
minbucket,
use_partykit = "on_error"
)
List with conditional inference tree and the variables conditioned/not conditioned on.
Integer vector. Indicates which features are conditioned on.
Data.table with training data.
String. In some semi-rare cases party::ctree()
runs into an error related to the LINPACK
used by R. To get around this problem, one may fall back to using the newer (but slower) partykit::ctree()
function, which is a reimplementation of the same method. Setting this parameter to "on_error"
(default)
falls back to partykit::ctree()
, if party::ctree()
fails. Other options are "never"
, which always
uses party::ctree()
, and "always"
, which always uses partykit::ctree()
. A warning message is
created whenever partykit::ctree()
is used.
Annabelle Redelmeier, Martin Jullum
See the documentation of the setup_approach.ctree()
function for undocumented parameters.