Page 1 of 1

File impvals.txt not found

Posted: Sat Aug 05, 2017 7:30 pm
by mattyjsmith
Dear Realcom user community,

I am having trouble with the Realcom-Impute command in Stata. I am running the following syntax:

realcomImpute o.bistage m.numroute agediag fuyear sex morphology ///
dep dead using crcimpute.dat, replace numresponses(2) ///
level2id(ccggroup) cons(cons)

I receive the following from Stata:

2 responses: o.bistage m.numroute
6 auxiliary variables: agediag fuyear sex morphology dep dead
(note: file crcimpute.dat not found)
Data saved to crcimpute.dat
(note: file crcimpute_wts.dat not found)

I then try the realcomImputeLoad command:

realcomImputeLoad

and I receive the following error message:

file impvals.txt not found
r(601);

I am wondering why I would be getting this error message?
Any help is much appreciated.

Thank you
Matthew

Re: File impvals.txt not found

Posted: Mon Aug 07, 2017 9:44 pm
by ChrisCharlton
You need to take the files output from the first command (crcimpute.dat and crcimpute_wts.dat) and load them into the Realcom-Impute package (see http://www.bristol.ac.uk/cmm/software/r ... ation.html). Once run this will then create the necessary imputed datasets for the second command. Could you confirm that you are running this middle step?

Re: File impvals.txt not found

Posted: Tue Aug 08, 2017 9:11 am
by mattyjsmith
Thank you for your repsonse, Chris.

I have not been running this middle step. Are there guided steps to show how to load these files into the Realcom-Impute package?

Kind regards,

Matthew

Re: File impvals.txt not found

Posted: Tue Aug 08, 2017 9:03 pm
by ChrisCharlton
Yes, the document Goldstein H. (2009) REALCOM-Impute: Multiple Imputation using MLwiN, User Guide, linked to from http://www.bristol.ac.uk/cmm/software/r ... ation.html steps through an example. You just need to ignore the references to MLwiN and use the files as generated from Stata instead.