Choice Modeling - Preview Choice Questionnaire

From Q
Jump to navigation Jump to search


Preview questions from a Choice Model Design output as they would appear in a questionnaire.

How to Create

  1. Add the object by selecting from the menu Anything > Advanced Analysis > Choice Modeling > Preview Choice QuestionnaireAutomate > Browse Online Library > Choice Modeling > Preview Choice Questionnaire
  2. Under Inputs > Choice experimental design output select a Choice Model Design output

Example

Output Example:


Input Example:
A Choice Modeling - Experimental Design


Options

Choice experimental design output A Choice Model Design output to preview.

Design version number to preview The version number in the design to show the questions for.

Code

var heading_text = 'Preview Choice Experiment Questionnaire';
if (!!form.setObjectInspectorTitle)
    form.setObjectInspectorTitle(heading_text, 'Previews of Choice Experiment Questionnaires');
else 
    form.setHeading(heading_text);

form.dropBox({name: "formCMD", label: "Choice experimental design output:", types: ["RItem:ChoiceModelDesign"]});
form.numericUpDown({name: "formVersion", label: "Design version number to preview",
                        default_value: 1, increment: 1, maximum: Number.MAX_SAFE_INTEGER, minimum: 1});
choice.questionnaire <- flipQualtrics::PreviewChoiceQuestionnaire(
                                                              cmd = formCMD, 
                                                              version.num = formVersion)