Ctree: S3 wrapper function for party's ctree method

Description Usage Arguments Details Value Author(s) See Also Examples

Description

S3 wrapper function for party's ctree method

Usage

1

Arguments

...

passed to ctree

Details

The ModelGood crossvalidation functionality works only for S3 classes.

Value

object of class Ctree which contains a ctree object

Author(s)

Thomas A. Gerds <tag@biostat.ku.dk>

See Also

ctree

Examples

1
2
3
4
5
6
7
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,])

Example output

Loading required package: grid
Loading required package: mvtnorm
Loading required package: modeltools
Loading required package: stats4
Loading required package: strucchange
Loading required package: zoo

Attaching package:zooThe following objects are masked frompackage:base:

    as.Date, as.Date.numeric

Loading required package: sandwich
[1] 0.62500000 0.62500000 0.08333333
attr(,"class")
[1] "predictStatusProb"

ModelGood documentation built on May 2, 2019, 3:02 a.m.

Related to Ctree in ModelGood...