Base framework for trend analysis