Hi everybody!
I am doing logistic regression models using R. I am checking the results with Stata. Regrettably, I can't test goodness of fit with Hosmer Lemeshow in R; this is quite sad because I have no problems to perform this test in Stata.
I have obtained the next message using R : "Error in model.frame.default(formula = cbind(y0 = 1 - y, y1 = y) ~ cutyhat) : variable lengths differ (found for 'cutyhat')"
I have reviewed many fora to solve this problem but it continues. Does anyone have any solution for this annoying problem?
Thank you in advance.
Maca