R/data.R

#' Pain relievers misuse in the US
#'
#' Datasets containing information about the use of pain relievers for non medical purpose.
#'
#' These datasets are a small subset from the "National Survey on Drug Use and Health, 2014".
#' All variables related to drug use have been recoded into vectors of integers talking value 0 for
#' "No/Unknown" and value 1 for "Yes". The original variable names were the same as those defined
#' here but in upper case and ending with the number 2. The dataset called `drugs` contain the first
#' 100 rows of the one called `drugs_full`.
#'
#' @format A tibble with either 100 or 55271 rows, and 8 variables:
#' \describe{
#'   \item{caseid}{The identifier code of the respondent}
#'   \item{hydrocd}{Ever use hydrocodone nonmedically?}
#'   \item{oxycodp}{Ever use ever percocet, percodan, tylox, oxycontin... nonmedically?}
#'   \item{codeine}{Ever used codeine nonmedically?}
#'   \item{tramadl}{Ever used tramadol nonmedically?}
#'   \item{morphin}{Ever used morphine nonmedically?}
#'   \item{methdon}{Ever used methadone nonmedically?}
#'   \item{vicolor}{Ever used vicodin, lortab or lorcert nonmedically?}
#' }
#' @source \url{https://www.icpsr.umich.edu/web/NAHDAP/studies/36361}
#' @references United States Department of Health and Human Services.
#'     Substance Abuse and Mental Health Services Administration.
#'     Center for Behavioral Health Statistics and Quality.
#'     National Survey on Drug Use and Health, 2014.
#'     Ann Arbor, MI: Inter-university Consortium for Political and Social Research (distributor), 2016-03-22.
#'     \doi{https://doi.org/10.3886/ICPSR36361.v1}
#'
#' @aliases drugs drugs_full
#' @name drugs
#' @examples
#' drugs
#' drugs_full
NULL

Try the lay package in your browser

Any scripts or data that you put into this service are public.

lay documentation built on Nov. 2, 2023, 6:05 p.m.