Learn R Programming

ModelGood (version 1.0.9)

Ctree: S3 wrapper function for party's ctree method

Description

S3 wrapper function for party's ctree method

Usage

Ctree(...)

Arguments

...
passed to ctree

Value

object of class Ctree which contains a ctree object

Details

The ModelGood crossvalidation functionality works only for S3 classes.

See Also

ctree

Examples

Run this code
library(party)
set.seed(7)
x <- abs(rnorm(20))
d <- data.frame(y=rbinom(20,1,x/max(x)),x=x,z=rnorm(20))
ct <- Ctree(y~x+z,d)
plot(ct$ctree)
predictStatusProb(ct,newdata=d[1:3,])

Run the code above in your browser using DataLab