Ctree: S3-Wrapper for ctree.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/predictRisk.party.R

Description

The call is added to an ctree object

Usage

1

Arguments

...

passed to ctree

Value

list with two elements: ctree and call

Author(s)

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

See Also

Cforest

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
if (requireNamespace("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))
}

riskRegression documentation built on Jan. 13, 2021, 11:12 a.m.