Timetrend.fun {BayesianPlatformDesignTimeTrend} | R Documentation |
This function generate the time trend function based on trend information. This function also check the validity of the input time trend information.
Timetrend.fun(trend.inf)
trend.inf |
The list of information for time trend effect including 'trend.type', 'trend.effect', 'trend_add_or_multip'. 'trend.type' is the shape of time trend. Default is "step". Other types are "linear", "inverse.U.linear", "plateau". "trend.effect" the vector of the strength of time trend for each arm. The first element is for the control arm. "trend_add_or_multip" the pattern of time trend affecting the true response probability. Default is "mult". |
A list containing the time trend function according to input trend.type variable, and a indicator of whether there is a time trend in data generation based on input trend information
Ziyan Wang
Timetrend.fun(trend.inf = list(
trend.type = "step",
trend.effect = c(0, 0),
trend_add_or_multip = "mult"
))