Learn R Programming

RSGHB (version 1.1.2)

choicedata: A synthetic discrete choice dataset

Description

A synthetic discrete choice dataset with each observation having two generic alternatives composed of two attributes (travel time and toll). The data are panel in nature (as opposed to cross-sectional) with 8 choice tasks per decision maker.

Usage

data(choicedata)

Arguments

Format

A data frame with one row per choice task.

ID

Decision maker identifier

thecount

Experiment number

tt1

Travel time for the first alternative

tt2

Travel time for the second alternative

toll2

Toll for the second alternative

asc1

Dummy for alternative specific constant

Choice

Choice made

Details

These choice data were synthetically derived to be used in generating examples of how RSGHB is used to estimate discrete choice models.

See Also

doHB

Examples

Run this code
# NOT RUN {
data(choicedata)

# Frequency of alternatives chosen
table(choicedata$Choice)

# }

Run the code above in your browser using DataLab