This function generates a time trend for given time points in the trial according to a linear function.
Arguments
- j
Time points for which the trend should be generated.
- lambda
Strength of time trend.
- sample_size
Vector of dimension 2, indicating sample size in the trial period until the time trend starts and the remaining sample size.