Share your ideas for the JMP Scripting Unsession at Discovery Summit by September 17th. We hope to see you there!
Choose Language Hide Translation Bar
Highlighted

How do I prevent the "Utility Comparisons" dialog from showing in Consumer Choice DOE using JSL?

I need to screen a long list of consumer choice models in DOE. I'm using JSL syntax, because I want them to run unattended. Unfortunately, this isn't working, since the "Utility Comparisons" dialog box shows after each model launches, and requires manual input. Some models raise this dialog, and others do not. The syntax below seems to raise it. Would love to know if there's syntax to prevent it from happening.

 

Thank you in advance!

 

SYNTAX FOLLOWS -- (Due to confidentiality concerns, I am unable to share the data file for testing.)

Choice(
	Response Data Table( Data Table( "Selections" ) ),
	Profile DataTable( Choice Profiles ),
	Subject DataTable( Data Table( "Selections" ) ),
	Response Subject ID( :QID ),
	Response Grouping( :QIndex ),
	Profile ID( :Choice ID ),
	Profile Grouping( :Choice Set ),
	Profile Effects(
		:Name( "Attribute A" ),
		:Name( "Attribute B" ),
		:Name( "Attribute C" ),
		:Name( "Attribute D" ),
		:Name( "Attribute E" )
	),
	Subject Effects( :GENDER ),
	Name( "Firth Bias-Adjusted Estimates" )(1),
	Response Profile ID Chosen( :OptionChosen ),
	Likelihood Ratio Tests( 1 )
);

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
melinda_thielba
Staff (Retired)

Re: How do I prevent the "Utility Comparisons" dialog from showing in Consumer Choice DOE

Hi, 

I don't think the code posted will cause the Utility Comparisons dialog to open. Maybe you have something more like this?

 

 

Open("$SAMPLE_DATA\Pizza Combined.jmp");

Choice(
	One Table( 1 ),
	Subject ID( :Subject ),
	Choice Set ID( :Trial ),
	Profile ID( :Indicator ),
	Profile Effects( :Crust, :Cheese, :Topping ),
	Name( "Firth Bias-Adjusted Estimates" )(1),
	Likelihood Ratio Tests( 1 ),
	Comparisons()
);

Note the empty Comparisons() in the script. If you have an incomplete specification for Utility Comparisons in your Choice platform code, that will cause the dialog to open. 

If your report needs utility comparisons, just make sure the comparisons are completly specified. This script also runs without opening a comparisons window. 

Open("$SAMPLE_DATA\Pizza Combined.jmp");

Choice(
	One Table( 1 ),
	Subject ID( :Subject ),
	Choice Set ID( :Trial ),
	Profile ID( :Indicator ),
	Profile Effects( :Crust, :Cheese, :Topping ),
	Name( "Firth Bias-Adjusted Estimates" )(1),
	Likelihood Ratio Tests( 1 ),
	Comparisons(
		{Crust( "Thick" ), Cheese( "Jack" ), Topping( "Pepperoni" )},
		{Crust( "Thin" ), Cheese( "Jack" ), Topping( "Pepperoni" )}
	),
	Comparisons(
		{Crust( "Thick" ), Cheese( "Mozzarella" ), Topping( "Pepperoni" )},
		{Crust( "Thick" ), Cheese( "Jack" ), Topping( "Pepperoni" )}
	),
	Comparisons(
		{Crust( "Thick" ), Cheese( "Jack" ), Topping( "Pepperoni" )},
		{Crust( "Thick" ), Cheese( "Jack" ), Topping( "None" )}
	)
);

 

View solution in original post

1 REPLY 1
Highlighted
melinda_thielba
Staff (Retired)

Re: How do I prevent the "Utility Comparisons" dialog from showing in Consumer Choice DOE

Hi, 

I don't think the code posted will cause the Utility Comparisons dialog to open. Maybe you have something more like this?

 

 

Open("$SAMPLE_DATA\Pizza Combined.jmp");

Choice(
	One Table( 1 ),
	Subject ID( :Subject ),
	Choice Set ID( :Trial ),
	Profile ID( :Indicator ),
	Profile Effects( :Crust, :Cheese, :Topping ),
	Name( "Firth Bias-Adjusted Estimates" )(1),
	Likelihood Ratio Tests( 1 ),
	Comparisons()
);

Note the empty Comparisons() in the script. If you have an incomplete specification for Utility Comparisons in your Choice platform code, that will cause the dialog to open. 

If your report needs utility comparisons, just make sure the comparisons are completly specified. This script also runs without opening a comparisons window. 

Open("$SAMPLE_DATA\Pizza Combined.jmp");

Choice(
	One Table( 1 ),
	Subject ID( :Subject ),
	Choice Set ID( :Trial ),
	Profile ID( :Indicator ),
	Profile Effects( :Crust, :Cheese, :Topping ),
	Name( "Firth Bias-Adjusted Estimates" )(1),
	Likelihood Ratio Tests( 1 ),
	Comparisons(
		{Crust( "Thick" ), Cheese( "Jack" ), Topping( "Pepperoni" )},
		{Crust( "Thin" ), Cheese( "Jack" ), Topping( "Pepperoni" )}
	),
	Comparisons(
		{Crust( "Thick" ), Cheese( "Mozzarella" ), Topping( "Pepperoni" )},
		{Crust( "Thick" ), Cheese( "Jack" ), Topping( "Pepperoni" )}
	),
	Comparisons(
		{Crust( "Thick" ), Cheese( "Jack" ), Topping( "Pepperoni" )},
		{Crust( "Thick" ), Cheese( "Jack" ), Topping( "None" )}
	)
);

 

View solution in original post

Article Labels

    There are no labels assigned to this post.