Salary gaps based on gender may come from a complicated number of factors.