missing imports from StatsBase