Learn R Programming

logitr (version 1.1.2)

apolloModeChoiceData: Simulated SP dataset of mode choice (from the apollo package).

Description

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.

Usage

data(apolloModeChoiceData)

Arguments

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.

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. tools:::Rd_expr_doi("10.1016/j.jocm.2019.100170")

Examples

Run this code
data(apolloModeChoiceData)

head(apolloModeChoiceData)

Run the code above in your browser using DataLab