DBCD_GAUSSIAN_raw {RARfreq}R Documentation

Doubly Adaptive Biased Coin Design (Gaussian Responses)

Description

Allocates patients to one of treatments based on doubly adaptive biased coin design on summarized data.

Usage

DBCD_GAUSSIAN_raw(X.df, group_allo, rho_func_index, rho_func, alpha)

Arguments

X.df

A data frame of two columns: treatment arm and response value.

group_allo

An integer of the size of group allocation. The default is 1.

rho_func_index

Supply a number of 1, 2 or 3 indicting the allocation function to use. (TODO: add reference) 1 = Zhang-Rosenberger allocation; 2 = Neyman allocation. The default is 2.

rho_func

Supply a user-specified allocation function of Mean_RK and SD_RK when rho_func_index is NULL. Default is NULL.

alpha

Supply a number indicating the subscripts of the probability function. The default is 2. (Hu and Zhang 2004)

Details

'DBCD_GAUSSIAN' assigns the next subject to a group given the observed success rates, enrolled subjects and allocation function.

Value

Number of the arm that the next subject is assigned to.

References

Hu F, Zhang L (2004). “Asymptotic Properties of Doubly Adaptive Biased Coin Designs for Multitreatment Clinical Trials.” The Annals of Statistics. doi: 10.1214/aos/1079120137.

Examples

X.df = data.frame(
ARM = sample(LETTERS[1:2],50,replace = TRUE),
RESPONSE = rnorm(50)
)

DBCD_GAUSSIAN_raw(X.df)


[Package RARfreq version 0.1.5 Index]