How to realize RCT hierarchical Block Randomization with R language
How to use R language to achieve RCT hierarchical block randomization, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail, people with this need can come to learn, I hope you can gain something.
Key points: stratified blocks are randomized, and polycentric RCT is commonly used. After central stratification, each layer is divided into groups in order to ensure a balanced number of subjects in each group.
The package is called blockrand, the content of the package, only this one function, is to do hierarchical block randomization, like this kind of straightforward package, no dazzling things.
To explain briefly, in order to demonstrate intuitively, a virtual scene is made up. Suppose that the Sample-size of a scheme is 32 focus Twomurarm Designs, two centers (center A & B), and the block length is set to 4. The randomization code is as follows:
Enter:
Library (blockrand) Centra