% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{data_diabetes_mediation}
\alias{data_diabetes_mediation}
\title{Diabetes Mediation Teaching Dataset}
\format{
A data frame with variables:
\describe{
  \item{diabetes}{Diabetes status (\code{No}, \code{Yes})}
  \item{obesity}{Obesity status based on BMI >= 30 (\code{No}, \code{Yes})}
  \item{glucose}{Plasma glucose concentration}
  \item{bmi}{Body mass index}
  \item{age}{Age in years}
  \item{blood_pressure}{Diastolic blood pressure}
  \item{pregnancies}{Number of pregnancies}
  \item{diabetes_pedigree}{Diabetes pedigree function}
}
}
\source{
Derived from \code{data_SynthDiabetes}, which is based on
\code{mlbench::SynthDiabetes2} (\pkg{mlbench} version 2.1-11 or later).
}
\usage{
data_diabetes_mediation
}
\description{
A health-related teaching dataset prepared from synthetic diabetes data.
It is designed for the practical question: could part of the obesity
and diabetes relationship operate through plasma glucose, after adjustment
for basic clinical covariates?
}
\details{
This dataset is intended for practice and teaching. Mediation estimates from
observational data should be interpreted causally only when the temporal
ordering and no-unmeasured-confounding assumptions are justified by study
design, DAGs, and subject-matter knowledge.
}
\keyword{datasets}
