Learn R Programming

ICcforest

The goal of ICcforest is to implement the conditional inference forest approach to modeling interval-censored survival data. It also provides functions to tune the parameters and evaluate the model fit.

Installation

You can install the released version of ICcforest from CRAN with:

install.packages("ICcforest")

Example

This is a basic example which shows you how to solve a common problem:

## basic example code with miceData
library(ICcforest)
library(survival)
library(icenReg)
#> Loading required package: Rcpp
#> Loading required package: coda
data(miceData)

## For ICcforest to run, Inf should be set to be a large number, for example, 9999999.
idx_inf <- (miceData$u == Inf)
miceData$u[idx_inf] <- 9999999.

## Fit an iterval-censored conditional inference forest
Cforest <- ICcforest(Surv(l, u, type = "interval2") ~ grp, data = miceData)
#> mtry = 1  OOB Brier score = 0.06497173 
#> Searching left ...
#> Searching right ...

Copy Link

Version

Install

install.packages('ICcforest')

Monthly Downloads

156

Version

0.5.1

License

GPL (>= 2)

Maintainer

Weichi Yao

Last Published

February 17th, 2020

Functions in ICcforest (0.5.1)

gettree.ICcforest

Extract an individual tree from an ICcforest object
predict.ICcforest

Predict from an ICcforest model
ICcforest

Fit a conditional inference forest for interval-censored survival data
tuneICRF

Tune mtry to the optimal value with respect to out-of-bag error for an ICcforest model
ICcforest-package

Construct a conditional inference forest model for interval-censored survival data
sbrier_IC

Model Fit For Interval-Censored Data