StatAce utility functions R package