This repository contains the statistical analysis workflows, visualization code, and supplementary materials for Paper 3 of a three-paper research series examining artificial intelligence adoption among K-12 educators in Jordan.
Research Question: What factors predict educators' willingness to recommend AI tools to colleagues, and do perceptual beliefs mediate the relationship between AI use and endorsement intentions?
| Paper | Title | Methods | Repository |
|---|---|---|---|
| 1 | AI Tool Adoption Among K-12 Educators: Prevalence, Barriers, and Cluster Profiles | Hierarchical Cluster Analysis | ai-barriers-cluster-analysis |
| 2 | Factors Predicting AI Tool Adoption: A Random Forest and Logistic Regression Analysis | Random Forest, Logistic Regression | rf-perception-dominance |
| 3 | Analyzing the Gap Between AI Adoption and Advocacy | Ordinal Regression, Mediation Analysis | This Repository |
Despite 84.7% of educators adopting AI tools, endorsement intentions varied substantially:
| Endorsement Level | Percentage | n |
|---|---|---|
| Would Recommend | 56.6% | 107 |
| Uncertain | 21.7% | 41 |
| Would Not Recommend | 21.7% | 41 |
| Predictor | Odds Ratio | 95% CI | p-value |
|---|---|---|---|
| Perceived Student Effects | 9.52Γ | [1.54, 58.82] | .003** |
| Teacher Work Effects (positive) | 18.18Γ | [2.70, 125.00] | .010* |
| Efficiency Comparisons | 5.35Γ | [1.29, 22.22] | .020* |
| AI Use Status (direct) | 0.47Γ | [0.09, 2.44] | .343 (ns) |
Key Insight: AI use showed no independent effect once perceptions were controlledβendorsement operates entirely through belief formation.
77.7% of the AI use β endorsement relationship was mediated through perceptions:
βββββββββββββββββββββββββββββββ
β Perceived Student Effects β
aβ=0.65*** β (55.1%) β bβ=0.74***
βββββββ΄ββββββββββββββββββββββββββββββ΄ββββββ
β β
βΌ βΌ
ββββββββββββ βββββββββββββββββββββββββββ ββββββββββββββ
β AI Tool β β Teacher Work Effects β βEndorsement β
β Use βββββββΊβ (14.4%) βββββββΊβ Intentions β
ββββββββββββ βββββββββββββββββββββββββββ ββββββββββββββ
β aβ=0.31** bβ=0.41*** β
β β
β βββββββββββββββββββββββββββ β
ββββΊβ Efficiency Comparisons ββββββββ
aβ=0.28* β (8.3%) β bβ=0.26**
βββββββββββββββββββββββββββ
Direct Effect: c' = 0.19 (ns)
Total Effect: c = 0.87***
Implementation barriers showed counterintuitive positive effects on endorsement:
| Barrier Type | Total Effect | Indirect via Perceptions | Direct Effect |
|---|---|---|---|
| Availability | 0.22* | 0.29** (positive) | -0.07 (ns) |
| Language | 0.30** | 0.18* (positive) | 0.12 (ns) |
| Skill | 0.08 (ns) | 0.12β | -0.04 (ns) |
| Cost | 0.03 (ns) | -0.01 (ns) | 0.03 (ns) |
Interpretation: Educators who overcome barriers become stronger advocatesβlikely due to cognitive dissonance (effort justification) and enhanced self-efficacy.
- Sample: N = 189 K-12 educators from 32 schools in Jordan
- Design: Cross-sectional survey with ordinal outcome
- Data Collection: AprilβAugust 2024 via face-to-face paper survey
| Analysis | Software | Purpose |
|---|---|---|
| Bivariate Associations | JASP 0.19.3 | Chi-square tests, ANOVA, effect sizes |
| Ordinal Logistic Regression | JASP 0.19.3 | Proportional odds modeling |
| Parallel Mediation | Python 3.11 | Bootstrap CI (5,000 resamples) |
| Visualizations | Python 3.11 | matplotlib, seaborn |
Ordinal Regression:
logit[P(Y β€ j)] = Ξ±β±Ό - (Ξ²βΒ·AI_Use + Ξ²βΒ·Student_Effect + Ξ²βΒ·Work_Effect +
Ξ²βΒ·Efficiency + Ξ²β
Β·Barrier_Count + covariates)
Mediation Model:
- X (Predictor): AI Use Status (binary)
- M (Mediators): Student Effects, Work Effects, Efficiency Comparisons
- Y (Outcome): Endorsement Intentions (ordinal, treated as continuous for mediation)
- Covariates: Gender, subject area, sector, βexperience
ordinal-mediation-advocacy/
βββ README.md # This file
βββ LICENSE # MIT License
βββ .gitignore # Git ignore patterns
βββ requirements.txt # Python dependencies
βββ GITHUB_SETTINGS.md # Repository configuration guide
β
βββ data/
β βββ data_dictionary.md # Variable definitions and coding
β βββ survey_instrument.md # Original survey (Arabic & English)
β
βββ analysis/
β βββ jasp/
β β βββ ordinal_regression_workflow.md # Step-by-step JASP guide
β β βββ mediation_analysis_workflow.md # Mediation in Python
β βββ results/
β βββ summary_tables.md # All statistical tables
β
βββ visualizations/
β βββ scripts/
β βββ mediation_path_diagram.py # Figure 1
β βββ effect_decomposition_bar.py # Figure 2
β βββ predicted_probabilities.py # Figure 3
β βββ barrier_effects_comparison.py # Figure 4
β
βββ paper/
βββ [Published PDF - see DOI]
# Python environment
pip install -r requirements.txt
# JASP (download from https://jasp-stats.org/)
# Version 0.19.3 or later recommended-
Prepare Data
- Review
data/data_dictionary.mdfor variable coding - Ensure variables match specifications
- Review
-
Run Bivariate Analyses (JASP)
- Follow
analysis/jasp/ordinal_regression_workflow.md - Generate chi-square tests and effect sizes
- Follow
-
Fit Ordinal Regression (JASP)
- Build nested models (Demographics β Constraints β Perceptions β Full)
- Test proportional odds assumption (Brant test)
-
Conduct Mediation Analysis (Python)
- Follow
analysis/jasp/mediation_analysis_workflow.md - Run bootstrap resampling (5,000 iterations)
- Follow
-
Generate Visualizations (Python)
cd visualizations/scripts python mediation_path_diagram.py python effect_decomposition_bar.py python predicted_probabilities.py python barrier_effects_comparison.py
| Metric | Value | Interpretation |
|---|---|---|
| McFadden RΒ² | 0.578 | Excellent fit |
| Nagelkerke RΒ² | 0.789 | Strong prediction |
| LR ΟΒ²(10) | 95.57 | p < .001 |
| AIC | 155.7 | (vs. 231.3 null) |
| BIC | 194.6 | (vs. 237.8 null) |
| Brant Test | ΟΒ²(10) = 14.22 | p = .163 (assumption met) |
| Association | Cramer's V | Interpretation |
|---|---|---|
| AI Use Γ Endorsement | .632 | Large |
| Student Effects Γ Endorsement | .647 | Large |
| Work Effects Γ Endorsement | .489 | Large |
| Efficiency Γ Endorsement | .297 | Moderate-Large |
| Barrier Count Γ Endorsement | .215 | Moderate |
- Lead with student outcomes β Evidence of student learning gains (55% of advocacy effect) is far more persuasive than productivity benefits
- Create peer testimonial programs β Leverage educators who overcame barriers as powerful advocates
- Move beyond technical training β Pedagogical conviction, not tool proficiency, drives institutional diffusion
- Invest in demonstrable evidence β Fund pilots that generate measurable student outcome data
- Address access equitably β Availability barriers paradoxically strengthen advocacy among successful adopters
- Prioritize multilingual tools β Language-barrier educators show unique advocacy pathways
@article{rababah2025advocacy,
title={Analyzing the Gap Between AI Adoption and Advocacy: An Ordinal
Regression and Mediation Analysis Among K-12 Educators},
author={Rababah, Anfal},
journal={Zenodo},
year={2025},
doi={10.5281/zenodo.17519209}
}Anfal Rababah
Independent Researcher, Jordan
π§ Anfal0Rababah@email.com
π ORCID: 0009-0003-7450-8907
This project is licensed under the MIT License - see the LICENSE file for details.
- Statistical analyses conducted using JASP (open-source)
- Visualizations created with Python's matplotlib and seaborn
- Mediation analysis implemented following Hayes' PROCESS methodology
- AI language models (Grammarly, Claude Sonnet) assisted with manuscript preparation