I get the following error while imputing missing cases with the mice function from the library "mice"
Error in nnet.default(X, Y, w, mask = mask, size = 0, skip = TRUE, softmax = TRUE, :
too many (1104) weights
The problem is generated by the function mice.impute.polr
and mice.impute.polyreg
because of the default maximum number of weights.
I can not solved it by using the command substitute
and neither by copying the functions' code and writing the new functions mice.impute.polr
and mice.impute.polyreg
(because of a function I cannot find call augment
).
I've told that I should go to the source code to modify it.
How can I do it? Are there any other solution?