Learn R Programming

smdata (version 1.2)

trlong: 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")

Arguments

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

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

Run this code
# NOT RUN {
data("trlong", package="smdata")
# }

Run the code above in your browser using DataLab