Statistics, Data Science, Analytics, Business Intelligence, Machine Learning.
parameters estimated: dat <- data.frame( x1 = rnorm(10), x2 = rnorm(10) ) dat$y <- dat$x1 + dat$x2 + rnorm(10) model_small <- glm(y~x1, data = dat) model_large <- glm(y~x1+x2, data = dat) pchisq( q = model_small$deviance - model_large$deviance, df = model_small$df.residual -