A simulated dataset that combines longitudinal patient data, potentially including clinical observations, biomarker measurements, and specific events over time. Suitable for analyses involving time-varying covariates or event history.
Usage
data(combined_data)
Format
A data frame with 54 rows and 8 variables:
- patient_id
Character. Unique patient identifier.
- data_type
Character. Type of data record (e.g., "Clinical", "Biomarker", "Treatment").
- start_time
Integer. Start time for the observation or event interval.
- end_time
Integer. End time for the observation or event interval.
- response_status
Character. Patient's response status at a given time (e.g., "CR", "PR", "SD", "PD").
- on_study
Logical. Indicates if the patient was on study at the time of the record (TRUE/FALSE).
- event_time
Integer. Time at which a specific event occurred.
- event_type
Character. Type of event recorded (e.g., "Adverse Event", "Progression", "Dose Change").
Examples
data(combined_data)
str(combined_data)
#> 'data.frame': 54 obs. of 8 variables:
#> $ patient_id : chr "PT001" "PT001" "PT001" "PT002" ...
#> $ data_type : chr "lane" "lane" "lane" "lane" ...
#> $ start_time : int 0 3 8 0 6 0 2 5 9 0 ...
#> $ end_time : int 3 8 12 6 10 2 5 9 14 4 ...
#> $ response_status: chr "PR" "CR" "CR" "SD" ...
#> $ on_study : logi FALSE FALSE TRUE FALSE TRUE FALSE ...
#> $ event_time : int NA NA NA NA NA NA NA NA NA NA ...
#> $ event_type : chr NA NA NA NA ...
head(combined_data)
#> patient_id data_type start_time end_time response_status on_study event_time
#> 1 PT001 lane 0 3 PR FALSE NA
#> 2 PT001 lane 3 8 CR FALSE NA
#> 3 PT001 lane 8 12 CR TRUE NA
#> 4 PT002 lane 0 6 SD FALSE NA
#> 5 PT002 lane 6 10 PR TRUE NA
#> 6 PT003 lane 0 2 SD FALSE NA
#> event_type
#> 1 <NA>
#> 2 <NA>
#> 3 <NA>
#> 4 <NA>
#> 5 <NA>
#> 6 <NA>
table(combined_data$data_type, combined_data$response_status)
#>
#> CR PD PR SD
#> event 0 0 0 0
#> lane 7 4 10 6