HI,I am analyzing a risk model for type 2 diabetes using a logistic regression. In the final model I have only 6 predictors. The regression gives correct output (fullmod is the fitted model). Now I have a subset of dataset (mydata1) with 7 variables (1 response(0/1) + 6 predictors) and try to do cross validation using cv.glm. The dataset mydata1 has 1410 rows and no NA entry. This is the problem I run into (It does not matter what K I choose). Any help in this matter will be appreciated.
Error in if ((K > n) || (K <= 1)) stop("'K' outside allowable range") :
? missing value where TRUE/FALSE needed
[[alternative HTML version deleted]]