Learn R Programming

HIMA (version 2.3.3)

SurvivalLongData: Longitudinal Mediators with Survival Outcome Dataset for HIMA Demo

Description

A simulated dataset for demonstrating high-dimensional and longitudinal mediation analysis with survival outcomes in a counting-process framework. The data were generated under a longitudinal mediator model and a piecewise-constant Weibull survival model, mimicking real-world analysis settings.

Usage

SurvivalLongData

Arguments

Format

A list with the following components:

PhenoData

A data frame where each row represents one interval (tstart, tstop) for a subject in counting-process format. It contains:

ID

Subject identifier (may appear multiple times due to interval splitting).

Tstart

Start time of the interval.

Tstop

Stop time of the interval (event or censoring time).

Status

Event indicator for the interval (1 = event, 0 = no event).

Treatment

Exposure variable for each subject.

Sex

Binary covariate: 1 = male, 0 = female.

Age

Age of the subject in years.

Mediator

A numeric matrix of high-dimensional longitudinal mediators aligned with the rows of PhenoData. Columns correspond to mediator variables (M1, M2, …), and rows correspond to observation intervals in the counting-process setup.

Examples

Run this code
data(SurvivalLongData)
head(SurvivalLongData$PhenoData)

Run the code above in your browser using DataLab