SMS: A theory and procedure of scale analysis