Choice Modeling - Diagnostic - Experimental Design - Preview Choice Questionnaire extension
Jump to navigation
Jump to search
Preview questions from a Choice Model Design output as they would appear in a questionnaire.
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.
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";
})();
includeWeb("QScript R Output Functions");
includeWeb("QScript Utility Functions");
const menu_location = "Choice Modeling > Preview Choice Questionnaire";
errorIfExtensionsUnavailableInQVersion(menu_location);
const selected_items = project.report.selectedRaw();
const r_output = addStandardRToCurrentPage("Choice Modeling - Preview Choice Questionnaire", { "formCMD": selected_items[0].guid }, null);
r_output.group.moveAfter(r_output, selected_items[0]);
See also
- QScript for more general information about QScripts.
- QScript Examples Library for other examples.
- Online JavaScript Libraries for the libraries of functions that can be used when writing QScripts.
- QScript Reference for information about how QScript can manipulate the different elements of a project.
- JavaScript for information about the JavaScript programming language.
- Table JavaScript and Plot JavaScript for tools for using JavaScript to modify the appearance of tables and charts.