Description Usage Arguments Value Examples
Function to get terminal node from a set of partitioning rules and new predictors
1 | getnodesfromrules(x, Rules)
|
x |
a dataframe of predictors |
Rules |
a data frame containing 2 character variables: "terminalnode" and "condition" |
a vector of lenth the number of rows of x indicating the terminal nodes.
1 | getnodesfromrules(x=iris[1:3,-5],Rules=fitmodel.ctree(x=iris[,-5],y=iris$Species)$Rules)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.