Title: The rate and direction of inventive activity : economic and social factors