knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

kaps

$K$-adaptive partitioning for survival data

Build Status Build status CRAN_Status_Badge Coverage Status CRAN_Downloads

kaps is a multi-way partitioning algorithm, which divides the data into $K$ heterogeneous subgroups based on the information from a prognostic factor. Such a multi-way partition is found by maximizing the minimum of the subgroup pairwise test statistics. An optimal number of subgroups is determined by a permutation test.

You can install:

If you encounter a clear bug, please file a minimal reproducible example on github.

NOTICE

Since 2015, we ONLY use the github repositoty in order to maintain kaps.

Tutorial

To illustrate the function kaps() with various options, we use an artificial data, toy, which consists of 150 artificial observations of the survival time (time), its censoring status (status) and 6 covariates: the patient's race (Race), age at the initial time (Age), pathological grade (Grade), early onset depression (EOD), the number of metastasis LNs (meta) and the number of examined LNs (exam). The data can be called up from the package kaps:

library(kaps)
data('toy', package = 'kaps')
head(toy)

Here we utilize just 3 variables: meta, status, and time. The number of metastasis LNs, meta, is used as an ordered prognostic factor for finding heterogeneous subgroups.

toy <- toy[, c("meta", "status", "time")]

Selecting a set of cut-off points for given $K$

Suppose we specify the number of subgroups in advance. For instance, $K=3$. To select an optimal set of two cut-off points when $K=3$, the function kaps is called via the following statements

fit1 <- kaps(survival::Surv(time, status) ~ meta, data = toy, K = 3)
fit1 

References

ChangeLog



sooheang/kaps documentation built on July 15, 2019, 2:03 p.m.