Bioequivalence and Bioavailability Forum 00:19 CET

Main page Policy/Terms of Use Abbreviations Latest Posts

 Log in |  Register |  Search

randomization [R for BE/BA]

posted by Ana Cristina - Brazil, 2018-02-23 21:33  - Posting: # 18453
Views: 4,890

For example:
I have 16 subjects and two sequences (TR and RT) and of these 16 subjects:
8 are female (4 in the TR sequence and 4 in the RT sequence)
8 are male (4 in the TR sequence and 4 in the RT sequence)

I would like to know if anyone has the formula to do in R the balanced randomization by sex and sequence as in this example.
I need something general similar to this example and that generates a seed.

sujeito sexo seq period 1 period 2
1 F 1 T R
2 M 2 R T
3 M 1 T R
4 M 2 R T
5 F 1 T R
6 F 2 R T
7 M 2 R T
8 M 1 T R
9 M 1 T R
10 M 2 R T
11 F 2 R T
12 F 1 T R
13 F 2 R T
14 F 1 T R
15 M 1 T R
16 F 2 R T

thank you,

Ana Cristina


Edit: Category changed; see also this post #1. [Helmut]

Complete thread:

Activity
 Mix view
Bioequivalence and Bioavailability Forum |  Admin contact
19,154 posts in 4,080 threads, 1,308 registered users;
online 12 (0 registered, 12 guests [including 7 identified bots]).

One can show the following: given any rule, however “fundamental”
or “necessary” for science, there are always circumstances
when it is advisable not only to ignore the rule,
but to adopt its opposite.    Paul Feyerabend

The BIOEQUIVALENCE / BIOAVAILABILITY FORUM is hosted by
BEBAC Ing. Helmut Schütz
HTML5 RSS Feed