{'fraction_non_alphanumeric': 0.013980263157894737, 'fraction_numerical': 0.0, 'mean_word_length': 5.614130434782608, '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}}
What is Firm Heterogeneity in Trade Models? The Role of Quality, Scope, Markups, and Cost

We estimate a structural model of heterogeneous multiproduct firms to examine the sources of firm heterogeneity emphasized in the recent trade and macro literatures. Using Nielsen barcode data on prices and sales, we estimate elasticities of substitution within and between firms, and use the estimated model to recover unobserved qualities, marginal costs and markups. We find that variation in firm quality and product scope explains at least four fifths of the variation in firm sales. Most firms are well approximated by the monopolistic competition benchmark of constant markups, but the largest firms that account for most of aggregate sales depart substantially from this benchmark. Although the output of multiproduct firms is differentiated, cannibalization is quantitatively important for the largest firms. This imperfect substitutability of products within firms, and the fact that larger firms supply more products than smaller firms, implies that standard productivity measures are not independent of demand system assumptions and probably dramatically understate the relative productivity of the largest firms.