Skip to content

set_levels_for

mmaness edited this page Nov 15, 2011 · 2 revisions

A choice experiment trait (second-order) which sets the level for an alternative.

Format

set_levels_for Attribute_Identifier <- [level_mapping]

  • Attribute_Identifier - a constant which represents the attribute for which the levels for this alternative will be mapped to
  • level_mapping - an integer list whose entries correspond to indexes

Detailed Description

Trait Options

None

Can Be Used With:

Example

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]

Related Pages


Go back to Choice Experiment Trait

Home | JULIE Intro | Getting Started with JULIE | JULIE References | JULIE Development | Survenity Language