Learn R Programming

shapr (version 1.0.4)

create_ctree: Build all the conditional inference trees

Description

Build all the conditional inference trees

Usage

create_ctree(
  given_ind,
  x_train,
  mincriterion,
  minsplit,
  minbucket,
  use_partykit = "on_error"
)

Value

List with conditional inference tree and the variables conditioned/not conditioned on.

Arguments

given_ind

Integer vector. Indicates which features are conditioned on.

x_train

Data.table with training data.

use_partykit

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.

Author

Annabelle Redelmeier, Martin Jullum

Details

See the documentation of the setup_approach.ctree() function for undocumented parameters.