deviance analysis