The study looked at market conditions, crime rates, median income, education levels, employment rates and even the number of sunny days per year.