This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:create:randomization [10.08.2018 13:35] – admin | en:create:randomization [19.12.2018 11:07] – [Urns for Subgroup II] freekgille | ||
---|---|---|---|
Line 572: | Line 572: | ||
It may be the case that you need to ensure equal distribution of experimental groups in two subgroups -- for instance, if you have 3 stimuli and both the women in the study, as well as the men, should be equally divided between all three conditions. | It may be the case that you need to ensure equal distribution of experimental groups in two subgroups -- for instance, if you have 3 stimuli and both the women in the study, as well as the men, should be equally divided between all three conditions. | ||
- | To do so, you require an internal variable and two urns (with the same content). The following example assumes that the sex was queried on an earlier page in the multiple-choice question SD02. Also, that you have set up two urns with the IDS " | + | To do so, you require an internal variable and two urns (with the same content). The following example assumes that the sex was queried on an earlier page in the multiple-choice question SD02. Also, that you have set up two urns with the IDS " |
<code php> | <code php> | ||
Line 597: | Line 597: | ||
If possible, the different subpopulations (e.g. men and women) should also get given different stimuli. A simple solution would be to put different numbers in the urns. | If possible, the different subpopulations (e.g. men and women) should also get given different stimuli. A simple solution would be to put different numbers in the urns. | ||
- | For the following example, you need an " | + | For the following example, you need an " |
Apart from that, the PHP code is largely identical with the previous example. | Apart from that, the PHP code is largely identical with the previous example. |