Title: A framework for analyzing and predicting insurgency