Learn R Programming

smdata (version 1.2)

cocaineplus: Sex and race by method of cocaine ingestion

Description

Data from the 1991-1994 Drug Abuse Treatment Outcome Study on cocaine usage patterns.

Usage

data("cocaineplus")

Arguments

Format

A data frame with 7592 observations on the following 8 variables.

sexsrt

a factor with levels FEMALE MALE

age

a numeric vector

mstatstr

a factor with levels BLANK DIVORCED LIVINGASMARRIED MARRIED NEVERMARRIED SEPARATED WIDOWED

modestr

a factor with levels crack freebase inhale inject

racestr

a factor with levels AfroAmerican Caucasian Hispanic Other

sex

a numeric vector that takes the value 1 if male and 0 if female

mode

a numeric vector that takes the value 1 if cocaine usage method is crack, 2 if method is freebase, 3 if method is inhale, and 4 if method is inject

race

a numeric vector that takes the value 1 if AfroAmerican, 2 if Caucasian, 3 if Hispanic, and 4 if Other

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("cocaineplus", package="smdata")
# }

Run the code above in your browser using DataLab