Using imputed values to runmlwin
Posted: Wed Jan 28, 2015 6:56 pm
Hello Both,
I hope you are doing well. I wish you a happy new year.
I am using 50 imputed data to runmlwin. Due to the size of my database (more than 200000 obs and 85 var), I am using the flong format.
I sorted my data according to level3 level2 level1 but I am getting the following error message:
The data must be sorted according to the order of the model hierarchy: level3 level2 level1.
an error occurred when mi estimate executed runmlwin on m=1
no results will be saved
. xi: mi est, saving(miest) cmdok: runmlwin responsvar cons var1 var2 var3 var4 var5 var6 i.var7 var8 i
> .var9 i.var10 i.var11 i.var12 i.var13 i.var14 var15, level3(id_level3 : cons) level2(id_level2 : co
> ns) level1(id_level1 : cons) nopause
i.var7 _Ivar7_0-2 (naturally coded; _Ivar7_0 omitted)
i.var9 _Ivar9_1-3 (naturally coded; _Ivar9_1 omitted)
i.var10 _Ivar10_0-1 (naturally coded; _Ivar10_0 omitted)
i.var11 _Ivar11_1-5 (naturally coded; _Ivar11_1 omitted)
i.var12 _Ivar12_0-3 (naturally coded; _Ivar12_0 omitted)
i.var13 _Ivar13_0-3 (naturally coded; _Ivar13_0 omitted)
i.var14 _Ivar14_1-3 (naturally coded; _Ivar14_1 omitted)
The data must be sorted according to the order of the model hierarchy: id_level3 id_level2 id_level1.
an error occurred when mi estimate executed runmlwin on m=1
no results will be saved
Is it related to the imputed data style? Do I need to convert them to the wide style (Stata wouldn’t support a certain amount of variables) ?
Many thanks for your help
I hope you are doing well. I wish you a happy new year.
I am using 50 imputed data to runmlwin. Due to the size of my database (more than 200000 obs and 85 var), I am using the flong format.
I sorted my data according to level3 level2 level1 but I am getting the following error message:
The data must be sorted according to the order of the model hierarchy: level3 level2 level1.
an error occurred when mi estimate executed runmlwin on m=1
no results will be saved
. xi: mi est, saving(miest) cmdok: runmlwin responsvar cons var1 var2 var3 var4 var5 var6 i.var7 var8 i
> .var9 i.var10 i.var11 i.var12 i.var13 i.var14 var15, level3(id_level3 : cons) level2(id_level2 : co
> ns) level1(id_level1 : cons) nopause
i.var7 _Ivar7_0-2 (naturally coded; _Ivar7_0 omitted)
i.var9 _Ivar9_1-3 (naturally coded; _Ivar9_1 omitted)
i.var10 _Ivar10_0-1 (naturally coded; _Ivar10_0 omitted)
i.var11 _Ivar11_1-5 (naturally coded; _Ivar11_1 omitted)
i.var12 _Ivar12_0-3 (naturally coded; _Ivar12_0 omitted)
i.var13 _Ivar13_0-3 (naturally coded; _Ivar13_0 omitted)
i.var14 _Ivar14_1-3 (naturally coded; _Ivar14_1 omitted)
The data must be sorted according to the order of the model hierarchy: id_level3 id_level2 id_level1.
an error occurred when mi estimate executed runmlwin on m=1
no results will be saved
Is it related to the imputed data style? Do I need to convert them to the wide style (Stata wouldn’t support a certain amount of variables) ?
Many thanks for your help