PocSimMIN.ui: Command-line User Interface Using Pocock and Simon's...

View source: R/rand_CLI.R

PocSimMIN.uiR Documentation

Command-line User Interface Using Pocock and Simon's Procedure with Two-Arms Case

Description

A call to the user-iterface function used to allocate patients to one of two treatments using Pocock and Simon's method proposed by Pocock S J, Simon R (1975) <doi:10.2307/2529712>.

Usage

PocSimMIN.ui(path, folder = "PocSimMIN")

Arguments

path

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

folder

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

Details

See PocSimMIN.

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 PocSimMIN.ui.

Note

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

References

Ma W, Ye X, Tu F, Hu F. carat: Covariate-Adaptive Randomization for Clinical Trials[J]. Journal of Statistical Software, 2023, 107(2): 1-47.

Pocock S J, Simon R. Sequential treatment assignment with balancing for prognostic factors in the controlled clinical trial[J]. Biometrics, 1975: 103-115.

See Also

See PocSimMIN for allocating a given completely collected data; See PocSimMIN.sim for allocating patients with covariate data generating mechanism.


carat documentation built on Sept. 8, 2023, 6:05 p.m.