This function generates a stepwise trend for a given period. No time trend is assumed in the first period.
Arguments
- cj
Period indicator.
- lambda
Strength of time trend.
- 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
).