ICtree | R Documentation |
Recursive partition for interval-censored survival data in a conditional inference framework.
ICtree(Formula, data, Control = partykit::ctree_control())
Formula |
A formula object, with the response be a Surv object, with form Surv(time1, time2, type="interval2") |
data |
A data frame contains the variables named in Formula. |
Control |
A list of control parameters, see ctree_control |
ICtree
returns a party object. This function extends
the conditional inference survival tree algorithm in ctree
to fit interval-censored survival data. This function itself not longer requires the interval package, but running the example below
requires the interval package (for bcos data), which in turn requires the Icens package, which is not available on CRAN. To install
the Icens package, enter the following commands
source("https://bioconductor.org/biocLite.R")
biocLite("Icens")
An object of class party.
Fu, W. and Simonoff, J.S. (2017). Survival trees for Interval Censored Survival data. Statistics in medicine 36 (30), 4831-4842
library(Icens)
library(interval)
library(LTRCtrees)
data(bcos)
## Fit ICtree survival tree
## make sure to attach survival package (by library(survival) ) before using Surv function
Ctree <- ICtree(Surv(left,right,type="interval2")~treatment, data = bcos)
## Plot the fitted tree
plot(Ctree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.