powered by
lrtest(model1, model2)
data(titanic) mod0 <- glm( SURVIVED ~ CLASS, family=binomial, data=titanic) mod1 <- glm( SURVIVED ~ CLASS + SEX, family=binomial, data=titanic) lrtest(mod0, mod1)
Run the code above in your browser using DataLab