I met some problem when I used runmlwin with multiply imputed data (done by stata mi command).

My command is like this, a very simple one:

*sort commid idind2 wave*

*mi est, cmdok noi sav(mlw, replace): runmlwin phi cons, level3(commid: cons) level2(idind2: cons) level1(wave) discrete(distribution(binomial) ///*

link(logit) denom(cons) mql1) forcesort

link(logit) denom(cons) mql1) forcesort

but error message showed:

"The data must be sorted according to the order of the model hierarchy: commid idind2 wave.

an error occurred when mi estimate executed runmlwin on m=1

no results will be saved"

I read the post and followed all solutions on it:

https://www.cmm.bristol.ac.uk/forum/vie ... php?t=1030

However, I received another error message:

"mi estimate: omitted terms vary

The set of omitted variables or categories is not consistent between m=1 and

m=2; this is not allowed. To identify varying sets, you can use mi xeq to run

the command on individual imputations or you can reissue the command with mi

estimate, noisily

no results will be saved"

Actually, checking one by one, the numbers of obs. in the equation for m1 and the equation for m2 is the same.

Why I was told "omitted terms vary"? Is it not allowed to use stata-imputed data in Mlwin?

thank you very much!