Logistic regression models examining the association between craving and presence or absence of opioid use in the following week were conducted , controlling for opioid use in the previous week , treatment condition , and lifetime history of heroin use .