A small synthetic dataset demonstrating various participation patterns
in longitudinal data, suitable for examples with xtdescribe.
Format
A data frame with 30 rows and 4 variables:
- patient_id
Integer: Patient identifier (1-10).
- year
Integer: Year of measurement (2020-2024).
- blood_pressure
Numeric: Systolic blood pressure measurement.
- treatment
Character: Treatment group ("A" or "B").
Details
This dataset includes 10 patients measured at up to 5 time points (years 2020-2024). The dataset demonstrates various participation patterns typical in longitudinal studies:
Complete participation (all time points)
Early dropout
Late entry
Intermittent participation
Single time point participation
Examples
if (FALSE) { # \dontrun{
data(xt_example)
xtdescribe(xt_example)
} # }