A simulated dataset containing 7,000 mode choices among four alternatives. Data comes from 500 individuals, each with 14 stated stated preference (SP) observations. There are 7,000 choices in total. Each observation contains attributes for the alternatives, availability of alternatives, and characteristics of the individuals.

data(apolloModeChoiceData)

Format

VariableDescription
IDindividual identifiers
obsIDidentifier for unique choice observation
altIDalternative in each choice observation
qIDNumeric. Consecutive ID of SP choice tasks.
choicedummy code for choice (1 or 0)
modeCharacter describing mode: "air", "rail", "car", "bus"
timeTravel time in minutes.
costcost (in GBP) of trip.
accessAccess time in minutes.
serviceNumeric. Additional services: 1 for no-frills, 2 for wifi, 3 for food.
mode_airDummy coefficient for "air" mode.
mode_busDummy coefficient for "bus" mode.
mode_carDummy coefficient for "car" mode.
mode_railDummy coefficient for "rail" mode.
service_no_frillsDummy coefficient for "no-frills" additional service.
service_wifiDummy coefficient for "wifi" additional service.
service_foodDummy coefficient for "food" additional service.
time_carTravel time (in minutes) for car trip.
time_busTravel time (in minutes) for bus trip.
time_airTravel time (in minutes) for air trip.
time_railTravel time (in minutes) for rail trip.
femaleNumeric. Sex of individual. 1 for female, 0 for male.
businessNumeric. Purpose of the trip. 1 for business, 0 for other.
incomeNumeric. Income (in GBP per annum) of the individual.

Source

Data imported from the apollo package archive

References

Hess, S. & Palma, D. (2019), Apollo: a flexible, powerful and customisable freeware package for choice model estimation and application, Journal of Choice Modelling, Volume 32, September 2019. doi:10.1016/j.jocm.2019.100170

Examples

data(apolloModeChoiceData)

head(apolloModeChoiceData)
#> # A tibble: 6 × 24
#>      ID obsID altID   qID choice mode   time  cost access service mode_air
#>   <int> <int> <int> <int>  <dbl> <chr> <int> <int>  <dbl>   <dbl>    <int>
#> 1     1     1     1     1      0 air      50    50     55       3        1
#> 2     1     1     2     1      1 rail    170    35      5       2        0
#> 3     1     2     1     2      0 air      90    65     45       1        1
#> 4     1     2     2     2      1 rail    120    75      5       3        0
#> 5     1     3     1     3      0 air      70   110     40       1        1
#> 6     1     3     2     3      1 rail    155    75     25       2        0
#> # ℹ 13 more variables: mode_bus <int>, mode_car <int>, mode_rail <int>,
#> #   service_no_frills <int>, service_wifi <int>, service_food <int>,
#> #   time_car <int>, time_bus <int>, time_air <int>, time_rail <int>,
#> #   female <int>, business <int>, income <int>