Bookmark and Share

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]

Re: st: ICE with Interval Error #459 multiple imputation


From   A Loumiotis <[email protected]>
To   [email protected]
Subject   Re: st: ICE with Interval Error #459 multiple imputation
Date   Fri, 10 Aug 2012 09:32:58 +0300

If the variable that you are imputing with interval regression is not
missing then the lower and upper bounds should equal that non missing
value.  Is this true in your case?  See -help ice- especially the
interval option.

-ice- is a user written program available from SJ-9-3.  Please state
where user written programs come from as explained in Statalist FAQ.




On Fri, Aug 10, 2012 at 12:29 AM, Laura Kudrna <[email protected]> wrote:
> Hi,
>
> I am having the same error message / problem as the post below from
> the STATA message boards - Error #459.  It occurs when using the
> interval option with ICE.
>
> I generated two variables, ll1 and ul7, containing values of 1 and 7
> respectively to set the upper and lower bound for my variable
> sclifeca2.
>
> My STATA code is:
>
> ice ll1 ul7 sclifeca2 sclifeca3 sclifeca4 sclddr2 sclddr3 sclddr4
> iincome2 iincome3 iincome4 education2 occupation2 unemployed2
> unemployed3 sex2 age2 age3 age4 partner2 partner3 partner4 vehicles2
> vehicles3 vehicles4 holiday2 holiday3 holiday4 secprop2 secprop3
> secprop4 weight2 weight3 weight4, saving(imputed_dataset) m(5)
> interval(sclifeca2:ll1 ul7)
>
> My error message is:
> Error #459 encountered while running -uvis-
> I detected a problem with running uvis with command intreg on response sclifeca2
> and covariates sclifeca3 sclifeca4 sclddr2 sclddr3 sclddr4 iincome2
> iincome3 iincome4 education2 occupation2 unemployed2 unemployed3 sex2
> ag
>> e2 age3 age4 partner2 partner3 partner4 vehicles2 vehicles3 vehicles4 holiday2 holiday3 holiday4 secprop2 secprop3 secprop4 weight2 weight
>> 3 weight4.
>
> The offending command resembled:
> uvis intreg sclifeca2 sclifeca3 sclifeca4 sclddr2 sclddr3 sclddr4
> iincome2 iincome3 iincome4 education2 occupation2 unemployed2
> unemployed3
>> sex2 age2 age3 age4 partner2 partner3 partner4 vehicles2 vehicles3 vehicles4 holiday2 holiday3 holiday4 secprop2 secprop3 secprop4 weight2
>>  weight3 weight4 , gen([imputed])
>
> you may wish to try the -persist- option to persist beyond this error.
> dumping current data to ./_ice_dump.dta
> something that should be true of your data is not
>
> When I use the "persist" option, the data is imputed, but doesn't set
> the upper and lower bounds of my variable.
>
> Any ideas?!
>
> Thanks a lot.
>
> Best,
> Laura
>
> --------------------------------------------------------------------------------
> [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
> st: ICE with intervall
>
> --------------------------------------------------------------------------------
> From   "Renger van Nieuwkoop" <[email protected]>
> To   <[email protected]>
> Subject   st: ICE with intervall
> Date   Wed, 27 Oct 2010 11:02:00 +0200
>
> --------------------------------------------------------------------------------
>
> Hi
> I am trying to use ICE with interval imputation (the values are censored
> and are not allowed to be below 0).
> I have generated two variables co2_lb (lower bound) = 0 and co2_ub
> (upper bound) = . and then tried
> ice c01  c02  c02_lb c02_ub inc_earned, m(5) saving(imputed)
> interval(c02:c02_lb  c02_ub) replace
> Without interval I have no problems with ICE, with interval I get the
> following output (see below).
> Any idea what I am doing wrongly?
> Thanks
> Renger
>
>
>
> . ice c01  c02  c02_lb c02_ub inc_earned, m(5) saving(imputed)
> interval(c02:c02_lb  c02_ub) replace
>
>    #missing |
>      values |      Freq.     Percent        Cum.
> ------------+-----------------------------------
>           0 |     25,181       85.37       85.37
>           1 |      3,579       12.13       97.50
>           2 |        735        2.49      100.00
>           3 |          1        0.00      100.00
> ------------+-----------------------------------
>       Total |     29,496      100.00
>
>    Variable | Command | Prediction equation
> ------------+---------+-------------------------------------------------
> ------
>      c02_lb |         | [Lower bound for c02]
>      c02_ub |         | [Upper bound for c02]
>         c01 | regress | c02 inc_earned
>  inc_earned | regress | c01 c02
>         c02 | intreg  | c01 inc_earned
> ------------------------------------------------------------------------
> ------
>
> Imputing [Note: in regression for c01, permanently removing c02 due to
> collinearity]
> [Note: in regression for inc_earned, permanently removing c02 due to
> collinearity]
>
> Error #459 encountered while running -uvis-
> I detected a problem with running uvis with command intreg on response
> c02
> and covariates c01 inc_earned.
>
> The offending command resembled:
> uvis intreg c02 c01 inc_earned , gen([imputed])
>
> you may wish to try the -persist- option to persist beyond this error.
> dumping current data to ./_ice_dump.dta
> something that should be true of your data is not
> r(459);
> *
> *   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/
*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index