ICtree: Fit a survival tree for interval-censored survival data

Description Usage Arguments Details Value References Examples

View source: R/ICtree.R

Description

Recursive partition for interval-censored survival data in a conditional inference framework.

Usage

1
ICtree(Formula, data, Control = partykit::ctree_control())

Arguments

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

Details

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")

Value

An object of class party.

References

Fu, W. and Simonoff, J.S. (2017). Survival trees for Interval Censored Survival data. Statistics in medicine 36 (30), 4831-4842

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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)

LTRCtrees documentation built on Jan. 16, 2021, 5:09 p.m.