trlong: Transportation mode choice, long format

Description Usage Format Source References Examples

Description

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

Usage

1
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

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


Search within the smdata package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.