CPRSKbmtcrr: Transformed Bone Marrow Transplant Data for Competing Risks

CPRSKbmtcrrR Documentation

Transformed Bone Marrow Transplant Data for Competing Risks

Description

A dataset derived from the bmtcrr data (originally from the casebase package). This version adds unique subject IDs, an example grouping variable, and calculates an 'observed_time' based on age at transplant plus follow-up time in years, setting age 0 as the origin. It's prepared for competing risks analyses, potentially with frailties or left truncation.

Usage

data(CPRSKbmtcrr)

Format

A data frame with 177 observations and the following columns:

id

Unique subject identification number.

Sex

Gender of the individual (Factor: Male, Female).

D

Disease type: ALL or AML (Factor: ALL, AML).

Phase

Phase at transplant (Factor: Relapse, CR1, CR2, CR3).

Age

Age in years at transplant (start of follow-up).

Status

Status indicator: 0 = censored, 1 = relapse, 2 = competing event.

Source

Source of stem cells (Factor: BM+PB, PB).

ftime

Original failure time in months since transplant.

group

Example grouping variable (numeric, derived from id mod 10 + 1).

observed_time

Time in years since birth (Age + ftime/12) representing the time of event or censoring relative to birth as origin.

Details

This dataset was created by taking the original bmtcrr data from the casebase package and applying the following transformations:

  1. Added a unique subject identifier id.

  2. Added an example grouping variable group based on id.

  3. Calculated observed_time = Age + ftime/12 to represent the subject's age at event or censoring, potentially for use with left truncation at Age.

The primary event is typically relapse (Status=1), with death without relapse (Status=2) as a competing event. Censoring is Status=0. Note that the time scale for observed_time is years since birth.

Source

Derived from the bmtcrr dataset available in the casebase package.

References

Scrucca L, Santucci A, Aversa F. Competing risk analysis using R: an easy guide for clinicians. Bone Marrow Transplant. 2007 Aug;40(4):381-7. doi:10.1038/sj.bmt.1705727.

See Also

bmtcrr. The casebase package.


frailtypack documentation built on Nov. 23, 2025, 1:09 a.m.