Internal function that simulates subject enrollment data with random allocation to treatment arms and inclusion dates.
Arguments
- N
Integer. Number of subjects to simulate.
- seed
Integer. Random seed for reproducibility (can be
NULL
).- r
Numeric. Proportion of subjects allocated to the Control group in the binary
arm
variable (default: 0.5).- r2
Numeric. Proportion of subjects allocated to the Control group in the ternary
arm3
variable (default: 1/3).- ...
Additional arguments (currently unused).