R/data.R

#' Example Eating Disorder Diagnostic Data
#'
#' Individual-level binary diagnostic data for eating disorder patients,
#' including nine psychiatric diagnoses and pre/post treatment measures.
#'
#' @format A data frame with 1261 rows and 13 variables:
#' \describe{
#'   \item{MDD}{Major Depressive Disorder (0 = absent, 1 = present)}
#'   \item{DYS}{Dysthymia (0 = absent, 1 = present)}
#'   \item{DEP}{Depression (0 = absent, 1 = present)}
#'   \item{PTSD}{Post-Traumatic Stress Disorder (0 = absent, 1 = present)}
#'   \item{OCD}{Obsessive-Compulsive Disorder (0 = absent, 1 = present)}
#'   \item{GAD}{Generalized Anxiety Disorder (0 = absent, 1 = present)}
#'   \item{ANX}{Anxiety (0 = absent, 1 = present)}
#'   \item{SOPH}{Social Phobia (0 = absent, 1 = present)}
#'   \item{ADHD}{Attention-Deficit/Hyperactivity Disorder (0 = absent, 1 = present)}
#'   \item{pre_bmi}{Pre-treatment Body Mass Index (numeric)}
#'   \item{post_bmi}{Post-treatment Body Mass Index (numeric)}
#'   \item{pre_EDI}{Pre-treatment Eating Disorder Inventory score (numeric)}
#'   \item{post_EDI}{Post-treatment Eating Disorder Inventory score (numeric)}
#' }
#' @source Baylor College of Medicine eating disorder treatment program data.
#'   Data have been de-identified and anonymized for research purposes.
#' @examples
#' data(ANR2)
#' 
#' # Examine structure
#' str(ANR2)
#' 
#' # View diagnostic variables
#' vars <- c("MDD", "DYS", "DEP", "PTSD", "OCD", "GAD", "ANX", "SOPH", "ADHD")
#' head(ANR2[, vars])
#' 
#' # Check prevalence of diagnoses
#' colMeans(ANR2[, vars], na.rm = TRUE)
"ANR2"

Try the alsi package in your browser

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

alsi documentation built on Feb. 17, 2026, 5:07 p.m.