Support for Function terms()
USAGE:
expand.hat(termob, hats, specials, data, term.labels, formula)
This is support for the function terms(). It is not intended to be called directly by users.