In multivariable logistic regression analyses , both were associated with lower steady-state hemoglobin ( P = @ for headaches ; P < @ for migraines ) and higher pain rate ( P < @ for headaches ; P < @ for migraines ) , defined as the number of admissions requiring opioids in the previous @ years .