Scripts and analysis outputs for evaluating pre and post community-led total sanitation in selected communities in NIgeria
# CLTS Objective 1 Analysis
This repository contains the Python script **`clts_objective1_plus_types.py`**, which performs statistical analysis and visualization of Community-Led Total Sanitation (CLTS) data in Nigeria.
The script evaluates **pre- and post-intervention sanitation practices** and open defecation (OD) prevalence, disaggregated by state, LGA, and ward, using a multi-level observational design.
---
## Study Abstract
Open defecation (OD) poses significant health and environmental risks in rural Nigeria, necessitating effective sanitation interventions like CLTS.
This study evaluates the impact of CLTS on sanitation practices across five LGAs in Benue and Cross River States, Nigeria.
**Key findings:**
- Improved sanitation coverage ↑ **12.95 points** (9.60% → 22.55%).
- OD ↓ **49.75 points** (56.99% → 7.24%).
- Cross River outperformed Benue, showing a **341% larger intervention effect**.
- Bekwarra LGA showed the highest gains (+39.64 points in improved sanitation).
**Conclusion:** CLTS significantly reduced OD and improved sanitation, with stronger impacts in Cross River due to diversified facility adoption.
---
## Features
- **Contingency tables** with counts & row percentages
- **Chi-square tests** with df, p-values, effect size (Cramer’s V)
- **Difference-in-Differences (DiD)** logistic regression with cluster-robust errors
- **Visualizations**: sanitation coverage, OD reduction, toilet type distributions
- **Interpretations** automatically generated
---
## Requirements
Install dependencies before running the script:
```bash
pip install -r requirements.txt