Choice Modeling - Simulator EXPERIMENTAL

From Q
Jump to navigation Jump to search
This page is currently under construction, or it refers to features which are under development and not yet available for use.
This page is under construction. Its contents are only visible to developers!

Create a simulator for a choice model in Displayr.

includeWeb('QScript Functions for Choice Modeling EXPERIMENTAL');
includeWeb("JavaScript Utilities");
// Specify number of alternatives
var k = -1;
while (!isPositiveInteger(k)) {
    k = prompt("How many alternatives would you like in your simulator?");
if (!isPositiveInteger(k))
    alert("The number of alternatives must be an integer greater than 0.");
}
if (!createChoiceSimulator(k, false)) {
    log("Could not create choice simulator.")            
}

See also