Three essays on crash frequency analysis