Description Usage Arguments Value Examples
Function to fit a ctree model.
1 | fitmodel.ctree(x, y, treeplotsavepath = NULL, ...)
|
x |
a dataframe of predictors |
y |
a vector :dependent variable |
treeplotsavepath: |
a path to save the graph as a pdf. if NULL, no pdf is saved |
a named list of 4 elements: "Rules" a data.frame with two variables: terminalnode (a integer vector) and condition a string that gives the rule for each terminal node. "y" the values of the predictor "terminalnodes" a vector: the terminal nodes for each element of $y$. "shortlist" a character string giving the names of the variables in x that were used for the classification
1 | fitmodel.ctree(x=iris[,-5],y=iris$Species)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.