Learn R Programming

apollo (version 0.3.4)

apollo_modeChoiceData: Simulated dataset of mode choice.

Description

A simulated dataset containing 8,000 mode choices among four alternatives.

Usage

apollo_modeChoiceData

Arguments

Format

A data.frame with 8,000 rows and 25 variables:

ID

Numeric. Identification number of the individual.

RP

Numeric. 1 if the row corresponds to a revealed preference (RP) observation. 0 otherwise.

RP_journey

Numeric. Consecutive ID of RP observations. 0 if SP observation.

SP

Numeric. 1 if the row corresponds to a stated preference (SP) observation. 0 otherwise.

SP_task

Numeric. Consecutive ID of SP choice tasks. 0 if RP observation.

access_air

Numeric. Access time (in minutes) of mode air.

access_bus

Numeric. Access time (in minutes) of mode bus.

access_rail

Numeric. Access time (in minutes) of mode rail.

av_air

Numeric. 1 if the mode air (plane) is available. 0 otherwise.

av_bus

Numeric. 1 if the mode bus is available. 0 otherwise.

av_car

Numeric. 1 if the mode car is available. 0 otherwise.

av_rail

Numeric. 1 if the mode rail (train) is available. 0 otherwise.

business

Numeric. Purpose of the trip. 1 for business, 0 for other.

choice

Numeric. Choice indicator, 1=car, 2=bus, 3=air, 4=rail.

cost_air

Numeric. Cost (in GBP) of mode air.

cost_bus

Numeric. Cost (in GBP) of mode bus.

cost_car

Numeric. Cost (in GBP) of mode car.

cost_rail

Numeric. Cost (in GBP) of mode rail.

female

Numeric. Sex of individual. 1 for female, 0 for male.

income

Numeric. Income (in GBP per annum) of the individual.

service_air

Numeric. Additional services for the air alternative. 1 for no-frills, 2 for wifi, 3 for food. This is not used in the RP data, where it is set to 0.

service_rail

Numeric. Additional services for the rail alternative. 1 for no-frills, 2 for wifi, 3 for food. This is not used in the RP data, where it is set to 0.

time_air

Numeric. Travel time (in minutes) of mode air.

time_bus

Numeric. Travel time (in minutes) of mode bus.

time_car

Numeric. Travel time (in minutes) of mode car.

time_rail

Numeric. Travel time (in minutes) of mode rail.

Details

This dataset is to be used for discrete choice modelling. Data comes from 500 individuals, each with two revealed preferences (RP) observation, and 14 stated stated (SC) observations. There are 8,000 choices in total. Data is simulated. Each observation contains attributes for the alternatives, availability of alternatives, and characteristics of the individuals.