Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize RCT hierarchical Block Randomization with R language

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report