Pattern of domestic violence preceded violent gun crime