Migration Between States and Markets