I want to create a variable block size in randomization in sas.Block size will be multiple of 8 (3:1:3:1). It will look like something like below (In the example we have 8 obs for block 1,8 obs for block 2,16 for block 3,24 for block 4)
var1
block
var2
var3
1
1
L
1
2
1
L
1
3
1
L
1
4
1
L
1
5
1
L
1
6
1
L
1
7
1
L
1
8
1
L
1
9
2
L
1
10
2
L
1
11
2
L
1
12
2
L
1
13
2
H
1
14
2
L
1
15
2
L
1
16
2
L
1
17
3
L
1
18
3
H
1
19
3
L
1
20
3
L
1
21
3
L
1
22
3
L
1
23
3
H
1
24
3
L
1
25
3
L
1
26
3
L
1
27
3
L
1
28
3
L
1
29
3
L
1
30
3
L
1
31
3
L
1
32
3
L
1
33
4
L
1
34
4
L
1
35
4
L
1
36
4
L
1
37
4
L
1
38
4
L
1
39
4
L
1
40
4
L
1
41
4
L
1
42
4
L
1
43
4
L
1
44
4
L
1
45
4
L
1
46
4
L
1
47
4
L
1
48
4
L
1
49
4
L
1
50
4
L
1
51
4
L
1
52
4
L
1
53
4
L
1
54
4
L
1
55
4
L
1
56
4
L
1
... View more