Skip to content

Commit caf7870

Browse files
committed
Merge: Full cleanup — remove placeholders, update docs, add .github config
2 parents a640913 + 1d2ab0a commit caf7870

29 files changed

Lines changed: 127 additions & 170 deletions

.github/FUNDING.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
buy_me_a_coffee: varnasra
1+
buy_me_a_coffee: varnasr
2+
custom:
3+
- "https://openstacks.dev/support.html"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Bug Report
3+
about: Report a bug in a script, notebook, or tool
4+
labels: bug
5+
---
6+
7+
**Which script/notebook is affected?**
8+
9+
**What happened?**
10+
11+
**What did you expect?**
12+
13+
**Steps to reproduce:**
14+
1.
15+
2.
16+
3.
17+
18+
**Environment:**
19+
- R version:
20+
- OS:
21+
- Relevant packages:
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Feature Request
3+
about: Suggest a new script, notebook, or improvement
4+
labels: enhancement
5+
---
6+
7+
**What would you like?**
8+
9+
**Why is this useful for field research/evaluation?**
10+
11+
**Which section does this belong in?**

.github/ISSUE_TEMPLATE/repo-readiness-checklist.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1-
# Changelog
1+
# FieldStack Changelog
22

3-
## [v1.0.0](https://github.com/Varnasr/FieldStack/tree/v1.0.0) (2025-04-19)
3+
## [v1.0.0] - 2025-04-19
44

5-
[Full Changelog](https://github.com/Varnasr/FieldStack/compare/954b918bc01299272877fe2d2b65194fcf7a7eed...v1.0.0)
6-
7-
8-
9-
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
5+
### Initial Release
6+
- Core R scripts: health access index, climate vulnerability index, education outcomes, MEL reshaping
7+
- 4 Quarto notebooks for guided analysis workflows
8+
- Evaluation tools: SROI calculator, cost-effectiveness, qual-to-quant conversion
9+
- Custom visualisations: waterfall charts, bullet charts, sf maps
10+
- Qualitative coding with quanteda
11+
- Regression templates: logistic models, interaction terms, VIF checks
12+
- Sample datasets: climate exposure, health services, education outcomes, MEL indicators
13+
- Codebook templates for health surveys and programme monitoring
14+
- 9 testthat unit tests
15+
- GitHub Actions for CI and Quarto rendering
16+
- Zenodo DOI: 10.5281/zenodo.15250764

CITATION.cff

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
cff-version: 1.2.0
22
message: "If you use this repository, please cite it as below."
3-
title: "FieldStack: Reproducible R Code for MEL, Evaluation, and Social Data"
3+
title: "FieldStack: Reproducible R Code for Applied Development Research"
44
version: "1.0.0"
55
doi: "10.5281/zenodo.15250764"
66
date-released: 2025-04-20
77
authors:
88
- family-names: Sri Raman
99
given-names: Varna
10-
orcid: "https://orcid.org/0000-0000-0000-0000"
11-
affiliation: "Independent Development Economist"
1210
license: MIT
1311
repository-code: "https://github.com/Varnasr/FieldStack"
14-
url: "https://doi.org/10.5281/zenodo.15250764"
12+
url: "https://openstacks.dev"
13+
type: software

LICENSE.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 44 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,50 +4,55 @@
44

55
[![Part of OpenStacks](https://img.shields.io/badge/Part%20of-OpenStacks-blue)](https://openstacks.dev)
66
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
7+
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.15250764.svg)](https://doi.org/10.5281/zenodo.15250764)
78

89
> Built for use in the field — across health, gender, climate, and education programs in South Asia.
910
1011
---
1112

1213
## What This Is
1314

14-
FieldStack is a collection of **R notebooks, scripts, and sample data** for applied research and evaluation work. It covers survey design, regression analysis, qualitative coding, cost-effectiveness analysis, data visualisation, and reporting — all grounded in real South Asian fieldwork needs.
15+
FieldStack is a collection of **R notebooks, scripts, and sample data** for applied research and evaluation work. It covers regression analysis, cost-effectiveness, qualitative coding, data visualisation, and reporting — all grounded in real South Asian fieldwork needs.
1516

1617
This is the **applied research layer** of [OpenStacks for Change](https://openstacks.dev) — an open ecosystem of tools for public interest research and evaluation.
1718

1819
## What's Inside
1920

21+
### Core Scripts
22+
23+
| Directory | What It Does | Status |
24+
|-----------|-------------|--------|
25+
| `scripts/` | Index functions: health access, climate vulnerability, education outcomes, MEL reshaping | Ready |
26+
| `notebooks/` | 4 Quarto notebooks: education summary, public health index, climate risk, MEL dashboard | Ready |
27+
| `regression/` | Logistic models, interaction terms, multicollinearity checks (VIF) | Ready |
28+
| `evaluation/` | SROI calculators, cost-effectiveness, qual-to-quant conversion, evaluation summaries | Ready |
29+
| `custom_viz/` | Waterfall charts, bullet charts, sf map visualisation | Ready |
30+
| `visualisation/` | ggplot2 dashboard bars, faceted plots | Ready |
31+
| `qualitative/` | Qualitative coding with quanteda (corpus, tokens, DFM) | Ready |
32+
33+
### Data and Testing
34+
35+
| Directory | What It Contains |
36+
|-----------|-----------------|
37+
| `sample_data/` | 4 realistic datasets: climate exposure (150 rows), health services (200), education outcomes (200), MEL indicators (100) |
38+
| `codebook_templates/` | Variable metadata for health surveys and programme monitoring |
39+
| `tests/` | 9 testthat unit tests covering all core functions |
40+
41+
### Supporting
42+
2043
| Directory | What It Contains |
2144
|-----------|-----------------|
22-
| `notebooks/` | Quarto/R Markdown notebooks for common analysis tasks |
23-
| `regression/` | Regression templates with interaction terms, multicollinearity checks |
24-
| `evaluation/` | Cost-effectiveness analysis, SROI calculators, evaluation frameworks |
25-
| `survey-design/` | Survey sampling, questionnaire design, power calculations |
26-
| `survey_tools/` | Data reshaping, cleaning, and transformation utilities |
27-
| `qualitative/` | Qualitative coding examples and mixed-methods templates |
28-
| `custom_viz/` | Bullet charts, waterfall charts, maps, and custom ggplot themes |
29-
| `visualisation/` | Standard visualisation templates and chart recipes |
30-
| `tidyverse/` | Tidyverse-based data wrangling recipes |
31-
| `simulation/` | Monte Carlo and simulation scripts for evaluation design |
32-
| `codebook_templates/` | Codebook generation from survey instruments |
33-
| `automated_reporting/` | Automated report generation workflows |
3445
| `python_integration/` | R-Python interop via reticulate |
35-
| `stata/` | Stata companion scripts for cross-platform workflows |
36-
| `sql/` | SQL queries for database-backed analysis |
37-
| `tableau/` | Tableau-ready data exports and connection templates |
38-
| `sample_data/` | Practice datasets for testing (anonymised, realistic) |
39-
| `scripts/` | Standalone utility scripts |
40-
| `utils/` | Helper functions and shared utilities |
41-
| `tests/` | Test scripts for validation |
42-
| `workflows/` | End-to-end workflow guides |
46+
| `survey_tools/` | Survey data utilities |
47+
| `automated_reporting/` | Report generation workflows |
4348

4449
## Getting Started
4550

4651
### Prerequisites
4752

4853
- **R 4.0+** with RStudio or VS Code
49-
- **Key packages:** tidyverse, haven, survey, ggplot2, quarto
50-
- **Optional:** reticulate (for Python integration), DBI (for SQL)
54+
- **Key packages:** tidyverse, haven, survey, ggplot2, quarto, testthat
55+
- **Optional:** reticulate (for Python integration), sf (for mapping)
5156

5257
### Quick Start
5358

@@ -59,6 +64,9 @@ cd FieldStack
5964
# Open any notebook in RStudio
6065
# Start with notebooks/ for guided analysis examples
6166
# Use sample_data/ to test before using your own data
67+
68+
# Run the test suite
69+
source("tests/run_all_tests.R")
6270
```
6371

6472
### Typical Workflow
@@ -73,32 +81,33 @@ cd FieldStack
7381

7482
FieldStack is one of several stacks in the [OpenStacks](https://openstacks.dev) ecosystem:
7583

76-
| Stack | Focus | Link |
77-
|-------|-------|------|
78-
| [InsightStack](https://github.com/Varnasr/InsightStack) | MEL tools, calculators, documentation | Knowledge systems |
79-
| **FieldStack** (this repo) | R notebooks for fieldwork & evaluation | You are here |
80-
| [EquityStack](https://github.com/Varnasr/EquityStack) | Python workflows for development data | Data pipelines |
81-
| [SignalStack](https://github.com/Varnasr/SignalStack) | Research Rundown newsletter archive | Knowledge curation |
84+
| Stack | Focus |
85+
|-------|-------|
86+
| [InsightStack](https://github.com/Varnasr/InsightStack) | MEL tools, calculators, documentation |
87+
| **FieldStack** (this repo) | R notebooks for fieldwork and evaluation |
88+
| [EquityStack](https://github.com/Varnasr/EquityStack) | Python workflows for development data |
89+
| [SignalStack](https://github.com/Varnasr/SignalStack) | Research Rundown newsletter archive |
8290

8391
**Use FieldStack when** you need R-based analysis tools. Use **EquityStack** for Python/Jupyter equivalents. Use **InsightStack** for Stata tools and MEL calculators.
8492

8593
## Contributing
8694

8795
Contributions welcome — especially from field researchers and evaluators. See [CONTRIBUTING.md](CONTRIBUTING.md).
8896

89-
Useful contributions include:
97+
High-impact areas:
98+
- **Survey design** — sample size calculators, PSU allocation, sampling frameworks
99+
- **Simulation** — Monte Carlo scripts for evaluation design
100+
- **Visualisation** — heatmaps, treemaps, time series templates
90101
- R notebooks from your own evaluation work (anonymised)
91-
- New visualisation recipes for development data
92-
- Survey design templates and sampling frameworks
93-
- Bug fixes and documentation improvements
94102

95103
## Citation
96104

97105
```bibtex
98106
@software{fieldstack,
99107
author = {Sri Raman, Varna},
100108
title = {FieldStack: R Tools for Applied Development Research},
101-
url = {https://github.com/Varnasr/FieldStack}
109+
url = {https://github.com/Varnasr/FieldStack},
110+
doi = {10.5281/zenodo.15250764}
102111
}
103112
```
104113

@@ -108,4 +117,4 @@ MIT — free to use, modify, and share. See [LICENSE](LICENSE).
108117

109118
---
110119

111-
**Created by [Varna Sri Raman](https://github.com/Varnasr)** — Development Economist & Social Researcher
120+
Part of [OpenStacks for Change](https://openstacks.dev). Created by [Varna Sri Raman](https://on-web.link/varna).

ROADMAP.md

Lines changed: 22 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,37 @@
1+
# FieldStack Roadmap
12

2-
# 🛣️ FieldStack Roadmap (2024)
3-
4-
This document outlines planned and in-progress enhancements to ensure FieldStack remains a high-quality, reusable repository for MEL and applied evaluation work.
3+
Current development priorities and planned work.
54

65
---
76

8-
## ✅ Completed (as of Apr 2024)
7+
## Complete
98

10-
- [x] Fully working R scripts for 5 core sectors (gender, public health, education, climate, MEL)
11-
- [x] Quarto notebooks with inline charts, data loads, and exports
9+
- [x] Core R scripts for health access, climate vulnerability, education outcomes, and MEL reshaping
10+
- [x] 4 Quarto notebooks with data loading, processing, and visualisation
1211
- [x] Sample data for each module using India-relevant district indicators
13-
- [x] `testthat` unit tests for all core scripts
12+
- [x] testthat unit tests for all core scripts
13+
- [x] Evaluation tools: SROI, cost-effectiveness, qual-to-quant conversion
14+
- [x] Custom visualisations: waterfall charts, bullet charts, sf maps
15+
- [x] Qualitative coding example with quanteda
16+
- [x] Zenodo DOI and citation metadata
1417
- [x] GitHub Actions for CI and Quarto rendering
15-
- [x] Citation metadata and usage instructions
16-
- [x] Project branding and folder map
17-
18-
---
1918

20-
## 🧪 In Progress
19+
## In Progress
2120

22-
- [ ] Add additional `sf`-based spatial mapping examples
23-
- [ ] Modularise functions with custom R packages (`R/` folder)
24-
- [ ] Add `.Rmd` versions of all `.qmd` notebooks
21+
- [ ] Additional sf-based spatial mapping examples
22+
- [ ] Modularise functions into a custom R package (R/ folder)
2523
- [ ] Streamlined Shiny dashboard prototype
2624

27-
---
25+
## Planned
2826

29-
## 🔜 Planned Features
30-
31-
- [ ] Expand sample datasets to include real MoSPI/NSS/Census excerpts
32-
- [ ] Add `contrib/` folder for externally submitted use cases
33-
- [ ] Translation-ready versions for multilingual training
34-
- [ ] Zenodo DOI and GitHub Release versioning
35-
- [ ] Educational visual walkthrough (`.gif` or `.mp4`) for new users
27+
- [ ] Survey design tools: sample size calculators, PSU allocation, sampling frameworks
28+
- [ ] Simulation scripts: Monte Carlo for evaluation design, missing data imputation
29+
- [ ] Expanded visualisation: heatmaps, treemaps, time series templates
30+
- [ ] Tidyverse pipeline examples for common data wrangling tasks
31+
- [ ] SQL integration for database-backed analysis
32+
- [ ] Expanded sample datasets with MoSPI/NSS/Census excerpts
33+
- [ ] contrib/ folder for externally submitted use cases
3634

3735
---
3836

39-
## 💬 Feedback & Contributions
40-
41-
You’re welcome to fork, submit pull requests, or suggest improvements via Issues.
42-
For structured suggestions, see `CONTRIBUTING.md`.
43-
37+
For suggestions, open an [issue](https://github.com/Varnasr/FieldStack/issues) or start a [discussion](https://github.com/Varnasr/FieldStack/discussions).

data_flow.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)