Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:create:random_urns [11.12.2014 21:37] – [Create an Urn] alexander.ritteren:create:random_urns [28.06.2015 10:02] – [Create Internal Variables] admin
Line 50: Line 50:
     * If you are using combinations (multiple values per ballot, and so multiple columns in the urn), you need the same number of variables as the number of values the combinations have. For example, if you have 10 ballots with 3 values in your urn, you need to have 3 variables in the question.     * If you are using combinations (multiple values per ballot, and so multiple columns in the urn), you need the same number of variables as the number of values the combinations have. For example, if you have 10 ballots with 3 values in your urn, you need to have 3 variables in the question.
     * Note down the question ID that you have just created (e.g. ''IV01'').      * Note down the question ID that you have just created (e.g. ''IV01''). 
-  + 
 +**Important:** Please use this question of type "Internal Variables" for the urn exclusively. Although it is technically possible to create further variables in the question, do not store data there via ''put()''. If you need to store additional data, create another question. Drawing from the urn will not work if something is stored in __any__ variable of the question.   
  
 ===== Draw a Ballot from the Urn ===== ===== Draw a Ballot from the Urn =====
  
-[[php|PHP code]] is now used in the questionnaire to draw a ballot from the urn. The function ''[[:en:create:functions-random#urndraw|urnDraw()]]'' is available in order to do this. The content of the urn drawn (either an individual random number or a combination) is stored in the internal variables, which you set up beforehand. Subsequently, you can use the value(s) drawn in filters or placeholders (see [[randomization|randomization]]).+[[php|PHP code]] is now used in the questionnaire to draw a ballot from the urn. The function ''[[:en:create:functions:urndraw|urnDraw()]]'' is available in order to do this. The content of the urn drawn (either an individual random number or a combination) is stored in the internal variables, which you set up beforehand. Subsequently, you can use the value(s) drawn in filters or placeholders (see [[randomization|randomization]]).
  
-When using ''urnDraw()'', you need the IDs that you noted down above (urn ID, "internal variable" question ID). Additionally, you need to decide, when the ballot should be stored, Normally, (not specified or '''now''') the ballot is stored straight away. If the participants in a test group systematically drop out more frequently, then there are fewer complete questionnaires in this group. If you expect to encounter problems because of this, use '''end''' or '''man''' (see reference to ''[[functions-random#urndraw|urnDraw()]]').+When using ''urnDraw()'', you need the IDs that you noted down above (urn ID, "internal variable" question ID). Additionally, you need to decide, when the ballot should be stored, Normally, (not specified or '''now''') the ballot is stored straight away. If the participants in a test group systematically drop out more frequently, then there are fewer complete questionnaires in this group. If you expect to encounter problems because of this, use '''end''' or '''man''' (see reference to ''[[:en:create:functions:urndraw|urnDraw()]]').
  
-**Note:** If you want to manually store a ballot from an urn (third parameter '''man'''), make sure that you also employ the function ''[[functions-random#urnputaway|urnPutAway()]]''.+**Note:** If you want to manually store a ballot from an urn (third parameter '''man'''), make sure that you also employ the function ''[[:en:create:functions:urnputaway|urnPutAway()]]''.
  
  
en/create/random_urns.txt · Last modified: 04.06.2019 21:25 by admin
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki