🎯 Military-to-Civilian Salary Estimator

AI-powered salary prediction model with 96% accuracy, trained on 3,589 real military-to-civilian transitions

96%

Model Accuracy
R² = 0.9627

3,589

Training Records
Real transitions

±$3,246

Avg Error
MAE on test set

Live

Interactive
Shiny Dashboard

🚀 Quick Links

📊 Project Overview

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.

✨ Key Features

📈 High Accuracy

R² = 0.9627 on independent test set. Achieves 96% variance explanation with minimal overfitting.

🔍 Interpretable

Transparent GLM coefficients explain exactly which factors drive salary outcomes.

🎯 Interactive

Live Shiny dashboard for real-time salary estimation with confidence intervals.

🔄 Reproducible

Full analysis pipeline with cross-validation, testing, and comprehensive documentation.

🔐 Privacy-Aware

No personally identifiable information. Military data anonymized and aggregated.

📝 Open Source

MIT licensed. Full source code available on GitHub for transparency and collaboration.

🛠️ Technical Stack

  • Algorithm: Generalized Linear Model (GLM)
  • Language: R 4.0+
  • Dashboard: Shiny interactive framework
  • Training Size: 2,512 records (70%)
  • Test Size: 1,077 records (30%)
  • Validation: 10-fold cross-validation
  • Explainability: SHAP & LIME analysis
  • Visualization: ggplot2 publication-quality figures

🔬 Model Insights

Feature Importance

The model reveals clear feature importance rankings:

Key Findings

💡 Use Cases

📋 Data & Methodology

Data Source

3,589 real military-to-civilian transitions with complete records. Data quality: 0 duplicates, <1% missing.

Train/Test Split

Model Validation

Performance Metrics

🚀 Getting Started

Clone the repository and get the model running in minutes:

1. Clone Repository

git clone https://github.com/yourusername/military-salary-estimator.git

2. Install Dependencies

# In R console:
source("requirements.R")

3. Launch Dashboard

library(shiny)
runApp("10_shiny_dashboard/app_simple.R", port = 8100)

Visit http://127.0.0.1:8100 in your browser. Done! 🎉

⚠️ Limitations & Disclaimer

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.

📜 License & Attribution

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}
}

Ready to explore?

Check out the repository on GitHub or launch the interactive dashboard to see the model in action.

View on GitHub Get Started