Researchers found that a multitude of factors influence whether or not people stay in the state.