{'fraction_non_alphanumeric': 0.020070838252656435, 'fraction_numerical': 0.0, 'mean_word_length': 5.424242424242424, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Deconstructing the Gains from Trade: Selection of Industries vs. Reallocation of Workers

In a Ricardian model with general distributions of industry efficiencies, the welfare gains from trade can be decomposed into a selection and a reallocation effect. The former is the change in average efficiency due to the selection of industries that survive international competition. The latter is the rise in the weight of exporting industries on total production owing to the reallocation of workers from non-exporting industries. Measuring the two effects is difficult in the general case, but the calculations become much simpler when using Fréchet-distributed efficiencies, providing easily quantifiable model-based measures of the two effects. The selection (reallocation) effect appears to be most significant when welfare gains are small (large).