A hierarchical framework for the analysis of scale