fitmodel.ctree: Function to fit a ctree model.

Description Usage Arguments Value Examples

View source: R/SDPSyn.R

Description

Function to fit a ctree model.

Usage

1
fitmodel.ctree(x, y, treeplotsavepath = NULL, ...)

Arguments

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

Value

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

Examples

1
fitmodel.ctree(x=iris[,-5],y=iris$Species)

DanielBonnery/BigSyn documentation built on June 28, 2020, 7:18 p.m.