Revise scanonevar to be independent of dglm package