Description Usage Arguments Value
Randomize survey
1 2 3 4 |
... |
A list of all questions or modules, with every possible permutation of every randomized question. Careful attention should be paid to the indexing of this list, as it will be used by the 'question_combinations' object to create full surveys. |
question_combinations |
A list or matrix of vectors, whose elements index the question/module list, stating the unique combinations questions to be randomized. Each element of the list or column of the matrix should be a vector of integers, where each integer indexes a unique element in the list of questions or modules. Thus, each vector of integers represents a complete survey. |
random_method |
Define the randomization method. If "complete", then each unique vector in question_combinations is repeated exactly combination_sizes times. If "simple", then each unique vector is generated as a survey with equal probabilities or combination_probs, until the survey is of size N_surveys or sum(combination_sizes). If "asis", randomize_survey simply applies through the question_combinations argument. This method is useful for more complex randomization schemes, where a pre-randomized question_combinations argument is provided. |
combination_probs |
If "simple" is provided to random_method, column or list element i of question_combinations is chosen with probability combination_probs[i]. |
combination_sizes |
If "simple" is provided to random_method, column or list element i of question_combinations is assigned to combination_sizes[i] units in the sample. |
N_surveys |
The number of surveys to generate. Should be left blank if combination_sizes is provided. |
ID |
An optional ID variable to replace the automatically generated one. Should be as long as the number of surveys (i.e. N_surveys or sum(combination_sizes)). |
Outputs all of the uniquely-identified pdfs or .tex files for use in a survey experiment.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.