Statistics, Data Science, Analytics, Business Intelligence, Machine Learning.
degrees of freedom, then the model might not fit the data well. Be careful when working with grouped data as R outputs the incorrect deviance and you should calculate it manually. Simple demonstration: dat <- data.frame( y = 5:7 / 10, n = rep(10, 3), x = 1:3 ) model <- glm( y~x, data = dat, weights