Right, education has also 3 levels.
I think I finally figured it out. Will leave the solution here, hope it will help someone.
So I have Gender (2 options), Age (3 options), and political support (2 options)
(1)
I will need to create 12 urns (2*3*2):
Example:
men (1 2 3 4 5) #stands for the number of experimental groups
women (1 2 3 4 5)
support (1 2 3 4 5)
no_support (1 2 3 4 5)
(2)
I will need to create 3 IV (for the number of variables)
(3)
Then I make sure that I have a page with randomization. In my case I randomly assign people to 5 groups:
if (value('NA06') == 1) {
question('E002');
} elseif (value('NA06') == 2) {
question('E003');
} elseif (value('NA06') == 3) {
question('E004');
} elseif (value('NA06') == 4) {
question('E005');
} elseif (value('NA06') == 5) {
question('E006');
}
where "NA06" is "randomization" and E002-6 are experimental questions
(4)
Blocking on Age, Gender, Polit. support:
if (value('A002') == 1) {
urnDraw('men', 'IV01', 'end');
} else {
urnDraw('women', 'IV01', 'end');
}
if (value('A001') == 1) {
urnDraw('18-35', 'IV02', 'end');
} elseif (value('A001') == 2) {
urnDraw('36-55', 'IV02', 'end');
} elseif (value('A001') == 3) {
urnDraw('56', 'IV02', 'end');
}
if (value('A003') == 1) {
urnDraw('support', 'IV03', 'end');
} elseif (value('A003') == 2) {
urnDraw('no_support', 'IV03', 'end');
}
$z = value('IV01_01');
$m = value('IV02_01');
$l = value('IV03_01');
if ($z == 1 && $m == 1 && $l == 1) {
question('NA06'); ### Important: 'NA06' is page number not ID
} elseif ($z == 1 && $m == 2 && $l == 1) {
question('NA06');
} elseif ($z == 1 && $m == 3 && $l == 1) {
question('NA06');
} elseif ($z == 2 && $m == 1 && $l == 2) {
question('NA06');
} elseif ($z == 2 && $m == 2 && $l == 2) {
question('NA06');
} elseif ($z == 2 && $m == 3 && $l == 2) {
question('NA06');
} elseif ($z == 1 && $m == 1 && $l == 2) {
question('NA06');
} elseif ($z == 1 && $m == 2 && $l == 2) {
question('NA06');
} elseif ($z == 1 && $m == 3 && $l == 2) {
question('NA06');
} elseif ($z == 2 && $m == 1 && $l == 1) {
question('NA06');
} elseif ($z == 2 && $m == 2 && $l == 1) {
question('NA06');
} elseif ($z == 2 && $m == 3 && $l == 1) {
question('NA06');
}