Page 1 of 1

Realcomimputeload error: `var’ found where numeric variable

Posted: Fri Sep 21, 2012 12:24 am
by baiyulaohu
Dear colleagues,

I successfully completed MI process (m=10) by RealComImpute. When I tried to load the data to Stata by using “realcomimputeload”, I got the error message in Stata: `var’ found where numeric variable expected.

So, I go back to check the data folder: 10 Stata subdata sets have been successfully created. But the type of some variables (i.e., `var’) is character rather than numeric ones. I open the data set (i.e., either imputeiter100 or imp1.dta), and see some “NA” instead of numbers.

How can I fix it?

I am not sure if it could result from the convergence problems because this MI process ran for 8 days, where there were 35 responses (5 continuous variables, and others 30 are binary or ordinary) and 17 variables without missingness. I set up the number of iterations as the default (n=1000).

Any comments are highly appreciated.

Re: Realcomimputeload error: `var’ found where numeric varia

Posted: Mon Sep 24, 2012 2:37 pm
by Harvey Goldstein
I'm puzzled by this. I don't think that realcom will ever write 'NA' in these files. It is just possible that if the model fails to converge you could get 'NAN'.
Harvey Goldstein

Re: Realcomimputeload error: `var��?found where numeric vari

Posted: Tue Sep 25, 2012 5:45 pm
by baiyulaohu
Harvey Goldstein wrote:I'm puzzled by this. I don't think that realcom will ever write 'NA' in these files. It is just possible that if the model fails to converge you could get 'NAN'.
Harvey Goldstein

thank you so much for your reply, Harvey. How can I improve the possibility of converge?

Re: Realcomimputeload error: `var’ found where numeric varia

Posted: Thu Sep 27, 2012 10:52 am
by ChrisCharlton
If you can sent a copy of your data and information on the model specification to H.Goldstein@bristol.ac.uk then we can investigate what is causing the issue.

Re: Realcomimputeload error: `var��?found where numeric vari

Posted: Fri Sep 28, 2012 4:40 pm
by baiyulaohu
ChrisCharlton wrote:If you can sent a copy of your data and information on the model specification to H.Goldstein@bristol.ac.uk then we can investigate what is causing the issue.

thanks very much for your offers. Unfortunately, we are not allowed to share the data with others according to our strict protocol. But I did find something like "perfect prediction" in my imputation model. I will re-run the model once I solve that issue. Thanks again.

Re: Realcomimputeload error: `var’ found where numeric varia

Posted: Mon Oct 01, 2012 8:48 am
by ChrisCharlton
If you still find the problem after running again and can replicate it on simulated data then we could look at that instead.