A joint framework for static and real-time crash risk analysis. (June 2018)