I am running a logistic regression model on a very small data set (n=78). I partitioned these data at 0.7 and when I tested the predictive ability of my selected model the accuracy was 0. The code I used to determine accuracy is below:
fitted.results <- predict(s0, newdata=test, type = 'response')
fitted.results <- ifelse(fitted.results > 0.5,1,0)
misClasificError <- mean(fitted.results !=test$Pluck)
print(paste('Accuracy', 1-misClasificError))
I'm unsure of whether this result is an artifact of my small sample size or not. The pseudoR2 value is decent (~.50) and the AUC is very high (0.96). Any advice would be greatly appreciated!