This function trains a partykit::ctree using data from a passed data.frame.
1 2 |
df |
data.frame with response variable to be explained and all explanatory variables to be used in ctree classificaiton |
fmla |
formula, referring to values in the df, specifying the variables to be used to train the ctree model |
ctl |
partykit::ctree_control instance to specify ctree model parameters |
responseVar |
the name of the variable that the ctree is trying to explain |
ignoreCols |
an optional list of columns in df, but that should be excluded from the ctree modeling |
... |
additional arguments to be passed to partykit::ctree |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.