Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:create:randomization [19.12.2018 11:05]
freekgille [Urns for Subgroup I]
en:create:randomization [19.12.2018 11:07]
freekgille [Urns for Subgroup I]
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 "​women"​ and "​men",​ both of which contain the numbers 1 to 3 (each one on a separate line).+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 "​women"​ and "​men",​ both of which contain the numbers 1 to 3 (each one on a separate line).
  
 <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 "​internal variables"​ question ​IVO1, with one item and two urns with the IDs "​women"​ (numbers 1 to 3, with each one in a separate line) and "​men"​ (number 4 to 6). Additionally,​ the sex must have been prompted beforehand in the multiple-choice question SD02. +For the following example, you need an "​internal variables"​ question ​IV01, with one item and two urns with the IDs "​women"​ (numbers 1 to 3, with each one in a separate line) and "​men"​ (number 4 to 6). Additionally,​ the sex must have been prompted beforehand in the multiple-choice question SD02. 
  
 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. ​
en/create/randomization.txt · Last modified: 19.12.2018 11:07 by freekgille
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki