I can't find the research study now but there was one done in Sweden which concluded that in countries with more economic freedom to choose careers women choose non-STEM careers unlike India and Pakistan where careers are still largely motivated by economic incentives.