I have fitted a Logistic Regression using a dummy data as below,
set.seed(1)
binary <- sample(c(1,0), 9, replace = T)
outcome <- rnorm(9)
treatment <- rnorm(9)
glm_fit <- glm(binary ~ outcome + treatment, family=binomial())
I wonder if there is any direct function to calculate the Accuracy ratio for above fit.
Many thanks for your insight.