Learn R Programming

jointCompRisk (version 0.1.1)

long_df: Longitudinal Severity Scores Dataset

Description

Repeated measurements of ordinal severity scores over time for the same patients in the main_df dataset, with treatment-specific trajectory patterns.

Usage

data(long_df)

Arguments

Format

A data frame with variable rows per patient:

PersonID

Patient identifier matching ID in main_df (character)

OrdinalScore

Severity score on 1-8 scale (numeric)

RelativeDay

Study day (numeric) starting from day 0 (baseline)

Details

Measurements are taken at scheduled visits: days 0 (baseline), 1, 3, 5, 7, 10, 14, 18, 21, 25, 28. The trajectory follows treatment-specific probabilities: treatment patients have 45 and 15 worsening probability, creating realistic differential clinical progression patterns.

Examples

Run this code
data(long_df)
data(main_df)
head(long_df)
# See data for first patient
subset(long_df, PersonID == "Patient_001")
# Compare average scores by treatment
long_df %>%
  dplyr::left_join(main_df[,c("ID","Treatment")], by=c("PersonID"="ID")) %>%
  dplyr::group_by(Treatment) %>%
  dplyr::summarise(mean_score = mean(OrdinalScore))

Run the code above in your browser using DataLab