This function generates a time trend for given time points in the trial according to a periodic function.
Arguments
- j
Time points for which the trend should be generated.
- lambda
Strength of time trend.
- n_wave
How many cycles (waves) should the time trend have (\(\psi\)).
- n_total
Total sample size in the trial.
- trend_mean
Integer. In case of random time trends, the strength of the time trend will be generated from N(
trend_mean
,trend_var
).- trend_var
Integer. In case of random time trends, the strength of the time trend will be generated from N(
trend_mean
,trend_var
).