Description Usage Format Source References Examples
Data from the 1991-1994 Drug Abuse Treatment Outcome Study on cocaine usage patterns.
1 | data("cocaineplus")
|
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
The data were extracted from the 1991-1994 Drug Abuse Treatment Outcome Study (2010) data (DATOS).
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.
1 | data("cocaineplus", package="smdata")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.