randomization [🇷 for BE/BA]
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]
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:
- randomizationAna Cristina 2018-02-23 21:33
- randomization ElMaestro 2018-02-23 22:24
- randomization Ana Cristina 2018-02-24 16:47
- randomization ElMaestro 2018-02-24 17:32
- package randomizeBE for R on steroids Helmut 2018-02-24 17:52
- Randomization of gender d_labes 2018-02-26 11:56
- Simplified R-code Helmut 2018-02-26 15:46
- Simplified R-code Ana Cristina 2018-02-27 13:16
- Updated R-code Helmut 2018-02-27 17:06
- Gender in crossover d_labes 2018-02-28 08:43
- Gender in crossover nobody 2018-02-28 10:14
- Sex in crossover Helmut 2018-02-28 12:42
- Sex in crossover Helmut 2018-02-28 12:27
- OT: Sex / gender d_labes 2018-02-28 14:42
- OT: Sex / gender Helmut 2018-02-28 14:58
- OT: Sex / gender Ana Cristina 2018-03-01 03:16
- OT: Sex / gender Helmut 2018-02-28 14:58
- OT: Sex / gender d_labes 2018-02-28 14:42
- Gender in crossover nobody 2018-02-28 10:14
- Updated R-code Beholder 2020-04-08 12:31
- Gender in crossover d_labes 2018-02-28 08:43
- Updated R-code Helmut 2018-02-27 17:06
- Simplified R-code Ana Cristina 2018-02-27 13:16
- Simplified R-code Helmut 2018-02-26 15:46