This secondary analysis evaluated whether endogenous opioid activity is associated with degree of opioid analgesic adverse effects , and whether chronic pain status and sex affect these adverse effects .