View source: R/predictRisk.party.R
Ctree | R Documentation |
The call is added to an ctree object
Ctree(...)
... |
passed to ctree |
list with two elements: ctree and call
Thomas A. Gerds <tag@biostat.ku.dk>
Cforest
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))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.