trlong {smdata}R Documentation

Transportation mode choice, long format

Description

Choice of transportation mode by gender, in long format so that each choice occupies 5 rows.

Usage

data("trlong")

Format

A data frame with 31680 observations on the following 6 variables.

obs

a numeric vector

case

a numeric vector

sex

a numeric vector, = 1 if male and 0 if female

resp

a factor indicating the transport mode choice, and B denotes taking the bus, codeD denotes driving one's own vehicle, F denotes getting a ride with a friend, O denotes other, and W denotes walking

chosen

a numeric vector taking the value 1 if the transport mode was chosen and 0 if not

pubpriv

a numeric vector that takes a value of 1 if the transportation mode is private and 0 if it is public

Source

The data are extracted from the 1991-1994 Drug Abuse Treatment Outcome Study (2010) data (DATOS).

References

United States Department of Health and Human Services and National Institute of Health and National Institute on Drug Abuse (2010). Drug Abuse Treatment Outcome Study, 1991-1994. Ann Arbor, MI: Inter-university Consortium for Political and Social Research.

Examples

data("trlong", package="smdata")

[Package smdata version 1.2 Index]