I am trying to make a prediction on a multinomial logit equation using the mlogit
package,
the problem I am having when trying to calculate the prediction using the new data I am receiving the following error
Error in contrasts<-
(*tmp*
, value = contr.funs[1 + isOF[nn]]) :
contrasts can be applied only to factors with 2 or more levels
I understand the error is due to my new data variable all being individual-specific and as such not giving more than 1 factor. all the advice I can find simply says drop the variable, but unfortunately not an option in this case, So is there any way around this error ?