Example 1: Simulated Trial with a Single, Continuous Outcome
Source:R/data.R
, R/example_1.R
example_1.Rd
Simulated data from a randomized trial with four continuous outcomes obtained at 30, 60, 90, and 120 days post-randomization and continuous baseline covariates.
Simulated data from a randomized trial with a single, continuous outcome obtained post-randomization and continuous baseline covariates.
Format
example_1
A data frame with 300 rows and 15 columns:
- .id
Participant ID
- x_1, x_2, x_3, x_4
Baseline Covariates 1-4
- tx
Binary treatment assignment (1 = Treatment; 0 = Control)
- y_1,y_2,y_3,y_4
Outcomes at assessments 1-4
- .enrollment_time
Time from study initiation to randomization
- .t_1,.t_2,.t_3,.t_4
Study time of assessments 1-4
example_1
A data frame with 368 rows and 11 columns:
- id
Participant ID
- treatment
Treatment Assigned
- enrollment_time
Time from study initiation to randomization
- x1, x2, x3, x4, x5
Baseline Covariates
- follow_up_time
Time from study initiation to last study visit
- tx
Binary treatment assignment (1 = Treatment; 0 = Control)
- y
Primary outcome: higher values indicate better outcomes