KAP study on hand, attire, and equipment hygiene among medical students, University of Khartoum
# Hygiene Practices During Clinical Training: KAP Study Analysis Code
Analysis code and data dictionary for a cross-sectional study of Knowledge,
Attitudes, and Practice (KAP) regarding hand, attire, and equipment hygiene
among medical students at the University of Khartoum Faculty of Medicine.
This repository accompanies the manuscript:
> [Author names]. Hygiene practices during clinical training: knowledge,
> attitudes and practice among a cohort of Sudanese medical students at
> Khartoum University. [Journal, year, DOI once assigned]
An earlier version of this study (data collected November 2021–May 2022,
n=304) was reported as an undergraduate thesis at the Department of
Community Medicine, University of Khartoum (supervisor: Dr. Siham Ahmed
Balla). This repository documents the reanalysis/extension performed for
journal submission.
## What's here
| File | Purpose |
|---|---|
| `scripts/00_Install_Packages.R` | Installs all required R packages |
| `scripts/01_Data_Cleaning.R` | Cleans raw export, harmonizes types, computes all KAP domain scores and grading |
| `scripts/02_Descriptive_Statistics.R` | Table 1, Figures 1–2, grading distribution |
| `scripts/03_Bivariate_Analysis.R` | Normality checks, Table 2 (year group) and Table 3 (gender) comparisons |
| `scripts/04_Multivariable_Regression.R` | Table 4 — multivariable regression of Practice on Knowledge/Attitude/gender/year, with diagnostics |
| `docs/DATA_DICTIONARY.md` | Full variable list, scoring formulas, reverse-coded items, grading cutoffs |
| `docs/deidentify_data.R` | Produces the shareable, de-identified dataset from the raw export (see Data Availability below) |
## Reproducing the analysis
1. Install R (>= 4.2) and RStudio.
2. Clone this repo.
3. Place the raw data file in the repo root (see **Data Availability** —
the raw file itself is not included in this repository).
4. Run scripts in order: `00` → `01` → `02` → `03` → `04`.
Each script is self-contained and reads the output of the pr …