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