ChoiceExperiment
mmaness edited this page Nov 15, 2011
·
4 revisions
A question which provides allows an open ended response to be provided through the use of a text field (1-line height text box).
ChoiceExperiment Name traits
-
Name - the name of the choice experiment, must follow the rules for constants (capitalized name)
- traits - this block contains choice experiment traits, which are statements that modify the choice experiment's properties
First-Order Choice Experiment Traits:
Second-Order Choice Experiment Traits:
- add_level. A trait associated with an attribute trait.
- set_levels_for. A trait associated with an alternative trait.
- attribute_label. A trait associated with an attribute trait
ChoiceExperiment VacationChoice
attribute Attractions
attribute_label "Attractions"
add_level 0, 0
"Beach"
add_level 1, 1
"Ski Resort"
attribute Cost
attribute_label "Trip Cost"
add_level 0, 500
"$500"
add_level 1, 750
"$750"
attribute Nights
attribute_label "Trip Length"
add_level 0, 3
"3 Nights"
add_level 1, 5
"5 Nights"
alternative "Vacation A"
set_levels_for Attractions <- [0 1]
set_levels_for Cost <- [0 1]
set_levels_for Nights <- [0 1]
alternative "Vacation B"
set_levels_for Attractions <- [0 1]
set_levels_for Cost <- [0 1]
set_levels_for Nights <- [0 1]
pre_table_text "The following vacation options are available:"
post_table_text "From the vacations shown above, which would you prefer for your next trip?"
choice "I will take Vacation A"
choice "I will take Vacation B"
add_design <- [0 0 0]
add_design <- [1 1 1]
add_design <- [0 1 0]
add_design <- [1 0 1]
Go back to Survenity Library Reference
Home | JULIE Intro | Getting Started with JULIE | JULIE References | JULIE Development | Survenity Language