Porter's National Diamond framework resulted from a study of patterns of comparative advantage among industrialized nations. It works to integrate much of Porter's previous work in his competitive five forces theory, his value chain framework as well as his theory of competitive advantage into a consolidated framework that looks at the sources of competitive advantage sourcable from the national context. It can be used both to analyze a firm's ability to function in a national market, as well as analyse a national market's ability to compete in an international market.