“…First, localization economies will be measured by a location quotient, which retains the relative importance of the share of employment in the industry and in the region relative to the national levels (used, namely by Hervas‐Oliver et al, ; Liang & Goetz, ; and Mukkala, ). In our study we use localization economies (SPE), based on employment, for the industry i in region r , for each period t , that is defined as: A second source of externalities are the diversity economies, commonly proxied by the inverse of the Herfindahl–Hirschman index of industry concentration based on the employment share of the different industries, excluding the respective industry (used by Fafchamps & Hamine, ; Carreira & Lopes, ; and Martin, Mayer, & Mayneris, ). The diversity economies (DIV), based on employment, for the industry i in region r with respect to the rest of the economy ( i' ≠ i ), are thus calculated as: Finally, to capture the regional knowledge base of a region, we consider regional R&D employment ( RD ), calculated as the number of employees that have, in each region, an occupation related to R&D (see Table for the details of the occupations that we have considered).…”