Closed fsdias closed 11 months ago
Hi, thanks for sharing. I guess the function should be rewritten. I don't see an easy general solution because the x's could in theory all take on the same values, which would really destroy everything . . . I guess that's the problem with having amateur coders like me do coding! I do think the principle of the binned residual plot is useful.
I was able to solve this issue by using binnedplot()
from library arm
.
Hi I'm working with the code from the binned_resids() function and came across the following issue:
For this particular covariate the code returns returns:
Error in cut.default(x, breaks) : 'breaks' are not unique
I think the problem is caused by repeated values in the vector "breaks":
and it seems that I need to change this line:
breaks.index <- floor(length(x)*(1:(nclass-1))/nclass)
but I'm not sure how.
Any advice? I can share data if necessary.
Thanks