Economics is a large driving force. As long as the immigrants get higher pay, they will move here. If not, they will move out. 

As for immigration retention, between 2005 and 2012 more Mexicans left the US than those who entered (I am not sure their numbers are counted, many of them are illegal immigrants). About 80 percent of the Chinese who entered in the last decade have left the US.