Learn R Programming

riskRegression (version 2023.12.21)

Ctree: S3-Wrapper for ctree.

Description

The call is added to an ctree object

Usage

Ctree(...)

Value

list with two elements: ctree and call

Arguments

...

passed to ctree

Author

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

See Also

Cforest

Examples

Run this code
if (require("party",quietly=TRUE)){
library(prodlim)
library(party)
library(survival)
set.seed(50)
d <- SimSurv(50)
nd <- data.frame(X1=c(0,1,0),X2=c(-1,0,1))
f <- Ctree(Surv(time,status)~X1+X2,data=d)
predictRisk(f,newdata=nd,times=c(3,8))
}

Run the code above in your browser using DataLab