HuHuCAR.ui: Command-line User Interface Using Hu and Hu's General...

Description Usage Arguments Details Value Note References See Also

View source: R/rand_CLI.R

Description

A call to the user-iterface function used to allocate patients to one of two treatments using Hu and Hu's general covariate-adaptive randomization method as proposed by Hu Y, Hu F (2012) <doi:10.1214/12-AOS983>.

Usage

1
HuHuCAR.ui(path, folder = "HuHuCAR")

Arguments

path

the path in which a folder used to store variables will be created.

folder

name of the folder. If default, a folder named "HuHuCAR" will be created.

Details

See HuHuCAR

Value

It returns an object of class "carseq".

The function print is used to obtain results. The generic accessor functions assignment, covariate, cov_num, cov_profile and others extract various useful features of the value returned by HuHuCAR.ui.

Note

This function provides a command-line interface so that users should follow the prompts to enter data, including covariates as well as levels for each covariate, weights omega, biased probability p and the covariate profile of the new patient.

References

Hu Y, Hu F. Asymptotic properties of covariate-adaptive randomization[J]. The Annals of Statistics, 2012, 40(3): 1794-1815.

See Also

See HuHuCAR for allocating patients with complete covariate data; See HuHuCAR.sim for allocating patients with covariate data generating mechanism.


carat documentation built on Oct. 16, 2021, 5:09 p.m.