Skip to content

predict.nnet (PR#1181)

1 message · Brian Ripley

#
I can't reproduce this example: I get
+   size = 2, rang = 1, maxit = 250, subset = jj)
Error in get(ctr)(levels(x), contrasts = contrasts) :
        Contrasts not defined for 0 degrees of freedom

And that's correct: what you are doing is nonsense. You've included
one-level factors, and you are fitting a non-linear model to a linearly
over-determined system (there are more X columns than data points).

I don't know how you got this to work, but I would not be surprised
if predict.nnet failed on an over-determined fit:  It's not designed for
misuse.

I don't agree this is a bug in my code.
On Mon, 26 Nov 2001 jcs20@po.cwru.edu wrote: