I have (mydata
) as example:
mydata <- read.csv("https://stats.idre.ucla.edu/stat/data/binary.csv")
## view the first few rows of the data
head(mydata)
mydata$rank <- factor(mydata$rank)
mylogit <- glm(admit ~ gre + gpa + rank, data = mydata, family = "binomial")
summary(mylogit)
I try to see if I have model overdispersion:
458.52/394 #[1] 1.163756 Almost 1!!!
But I not sure ... there is the package AER
that makes the overdispersion test for Poisson
and Binomial Negative
and for Binomial
there is any option?
Thanks in advance!