document formulae used by stats command