Page 1 of 1

Errors when computing multiple categorical variables

Posted: Mon Nov 04, 2013 9:13 pm
by jlgriffin
I'm trying to impute several variables. Most are dichotomous, one is continuous, and one is ordered categorical with 6 categories. I specify these response types using the "Specify type of response" button. After clicking "Start MCMC run", I get the following error messages:

Error using svd
Input to SVD must not contain NaN or Inf.
Error in pinv <line 29>
Error in mcmcdriver <line 698>
Error in gui_2levmixresp>pushbutton16_RunMCMC_Callback <line 264>
Error in gui_mainfcn <line 96>
Error in gui_2levmixresp <line 46>
Error in @<hObject,eventdata>gui_2levmixresp<'pushbutton16_RunMCMC_Callback',hObject,eventdata,guidata<hObject>>
Error while evaluating uicontrol Callback

Furthermore, the program does not appear to be identifying the 6-level ordered categorical variable as such; rather, only 3 categories are indicated in the log:

3 <----should have 6 categories

Please advise.

Thanks so much,

Re: Errors when computing multiple categorical variables

Posted: Tue Nov 05, 2013 10:18 am
by ChrisCharlton
The NRTYPE variable sets the type of response rather than the number of categories, valid values are:

1: Normal
2: Unordered
3: Ordered

The variable that holds number number of categories is NCAT.

You should be able to check/set the number of categories from the same screen where you specified the type of response. If changing the number of categories to match your data doesn't fix the problem then let us know and we should be able look into this further.

Re: Errors when computing multiple categorical variables

Posted: Sun Jul 26, 2015 12:56 pm
by AlexandderWuttke
I´ve encountered this error message as well.
After deleting variable by variable I could isolate the causes to having to do with three specific auxiliary variables. The error is not related to the response variable or the level of the response variable. The error seems to be that the categorical aux vars dont start with 0 (but with 1 in my case). Recoding solves the problem.

Re: Errors when computing multiple categorical variables

Posted: Tue Jul 28, 2015 4:09 pm
by ChrisCharlton
I find this a bit puzzling as Realcom does not have a concept of categorical auxiliary variables. Auxiliary variables are all treated as continuous so any categorical auxiliary variables have to be sent to Realcom-Impute as dummies, in which case the coding shouldn't matter.

Re: Errors when computing multiple categorical variables

Posted: Fri Aug 07, 2015 9:12 am
by AlexandderWuttke
True. Thanks for clarifying my mistake.

I just wanted to point out the practical hint that I avoided the error message by making sure that all my variables start with zero (which wasn´t the case in my dataset and might happen to others as well when playing around and testing).