We generalize a trade model with firm-specific heterogeneity and R&D-based growth to allow for an endogenous education decision of households and an endogenously evolving population. Our framework is able to explain cross-country differences in living standards and trade intensities by the...