Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pecCtree

S3-Wrapper for ctree.


Description

The call is added to an ctree object

Usage

pecCtree(...)

Arguments

...

passed to ctree

Value

list with two elements: ctree and call

Author(s)

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

See Also

pecCforest

Examples

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

pec

Prediction Error Curves for Risk Prediction Models in Survival Analysis

v2020.11.17
GPL (>= 2)
Authors
Thomas A. Gerds
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.