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 __webpack_modules__ = ({});
// The module cache
var __webpack_module_cache__ = {};

// The require function
function __webpack_require__(moduleId) {

// Check if module is in cache
var cachedModule = __webpack_module_cache__[moduleId];
if (cachedModule !== undefined) {
return cachedModule.exports;
}
// Create a new module (and put it into the cache)
var module = (__webpack_module_cache__[moduleId] = {
exports: {}
});
// Execute the module function
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);

// Return the exports of the module
return module.exports;

}

// webpack/runtime/rspack_version
(() => {
__webpack_require__.rv = () => ("1.7.2")
})();
// webpack/runtime/rspack_unique_id
(() => {
__webpack_require__.ruid = "bundler=rspack@1.7.2";
})();
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)