Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: ice error
From
fernando andrade <[email protected]>
To
[email protected]
Subject
st: ice error
Date
Mon, 23 Jan 2012 14:42:33 -0500
Dear all
i am using ICE to perform multiple imputation in a large set of
variables, while i am running the dry run i found myself with a
problem i do not expected.
ice is giving me this error message for several ordinal variables that
were speficied with the o.varname option:
Error! _Iy1rel5_w2_2 found on both sides of prediction equation
Error! _Iy1rel5_w2_3 found on both sides of prediction equation
Error! _Iy1rel5_w2_4 found on both sides of prediction equation
Error! _Iy1rel5_w2_5 found on both sides of prediction equation
in this case the variable is y1rel5_w2 and the ice command i am using is
ice a1alc8a_m debt_w2 y1cig y ... ///
m.y1duom5c_w2 m.y1duom5d_w2 ... m.t1050 ///
o.y1sc101 o.y1rel5_w2 .... o.y1pp1k_w2 ///
y1nei5 .... t1517 ///
conditional(a1htv1 : flagadult==1 \ a1htv2 : flagadult==1 ...
\ T1016as116 : flagactua ==1 ) ///
cmd(a1pm15a ... y1alc16b_w2: nbreg) ///
seed(123) ///
stepwise ///
m(10) ///
dryrun
note: "..." in the command mean that i omitted var names and other to
make the command easy reading
I understand that ICE is generating dummies for each variable
specified as o.varname or m.varname, (as in the case of o.y1rel5_w2)
and uses this dummies as predictors, but ice should not try to
directly impute the set of dummies that generates based on the
o.varname specification, right?
I appreciate if you could give some ideas as why i get these errors
thank you
Fernando
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/