Export a deviance function for StatisticalModel.