Timetrend.fun {BayesianPlatformDesignTimeTrend}R Documentation

Timetrend.fun

Description

This function generate the time trend function based on trend information. This function also check the validity of the input time trend information.

Usage

Timetrend.fun(trend.inf)

Arguments

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".

Value

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

Author(s)

Ziyan Wang

Examples

Timetrend.fun(trend.inf = list(
               trend.type = "step",
               trend.effect = c(0, 0),
               trend_add_or_multip = "mult"
               ))

[Package BayesianPlatformDesignTimeTrend version 1.1.3 Index]