The main factor is income, but other things are also important: health, freedom, unemployment, family life, climate, political stability and security, gender equality, and family and community life.
FORBES: Do Irish Immigrants to the Bay Area Feel Guilty for Living in Such an Amazing Place?