dev function

Deviance of the model