Trading barriers replication

About

The book Trading barriers: Immigration and the remaking of globalization by Margaret E. Peters presents regression tables tables that appear in Open Trade, Closed Borders: Immigration in the Era of Globalization (Peters 2015 from now on). Here I will provide R codes for the Stata codes that Peters 2015 made available here, and R codes based on my imagination for the rest of the tables in the book that are of my interest.