AI-powered salary prediction model with 96% accuracy, trained on 3,589 real military-to-civilian transitions
Model Accuracy
R² = 0.9627
Training Records
Real transitions
Avg Error
MAE on test set
Interactive
Shiny Dashboard
This project analyzes 3,589 real military-to-civilian salary transitions to build a predictive model that helps service members understand expected civilian salary outcomes. The model achieves 96% accuracy using a Generalized Linear Model (GLM) trained with proper cross-validation.
Military rank dominates salary determination, explaining 95%+ of variance. This reflects direct salary-based rank correspondence and the alignment between military hierarchy and civilian career progression.
R² = 0.9627 on independent test set. Achieves 96% variance explanation with minimal overfitting.
Transparent GLM coefficients explain exactly which factors drive salary outcomes.
Live Shiny dashboard for real-time salary estimation with confidence intervals.
Full analysis pipeline with cross-validation, testing, and comprehensive documentation.
No personally identifiable information. Military data anonymized and aggregated.
MIT licensed. Full source code available on GitHub for transparency and collaboration.
The model reveals clear feature importance rankings:
3,589 real military-to-civilian transitions with complete records. Data quality: 0 duplicates, <1% missing.
Clone the repository and get the model running in minutes:
git clone https://github.com/yourusername/military-salary-estimator.git
# In R console:
source("requirements.R")
library(shiny)
runApp("10_shiny_dashboard/app_simple.R", port = 8100)
Visit http://127.0.0.1:8100 in your browser. Done! 🎉
This model is a powerful tool for understanding salary trends, but comes with important limitations:
Use responsibly: Combine with BLS data, career counseling, and personal judgment.
This project is licensed under the MIT License, allowing free commercial and research use with attribution.
Citation:
@software{military_salary_estimator,
title = {Military-to-Civilian Salary Estimator},
author = {Your Name},
year = {2024},
url = {https://github.com/yourusername/military-salary-estimator}
}
Check out the repository on GitHub or launch the interactive dashboard to see the model in action.
View on GitHub Get Started