Choice Modeling - Class Preference Shares Table

From Q
Jump to navigation Jump to search


VizIcon Class Preference Shares.svg

Produce a table of preference shares by classes for a MaxDiff latent class analysis

Code

var heading_text = "Class Preference Shares Table";
if (!!form.setObjectInspectorTitle)
    form.setObjectInspectorTitle(heading_text);
else 
    form.setHeading(heading_text);

form.dropBox({label: "Input", name: "formInput", types: ['RItem:FitMaxDiffLCA,FitMaxDiffMNL'], required: true, prompt: "Select a Latent Class Analysis output created using Anything > Advanced Analysis > Marketing > MaxDiff"});
max.diff.class.preference.shares <- ExtractPreferenceShares(formInput)