analyze_sims function

Analyze simulation results