Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: -impute- variable creates only type 'float'


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: -impute- variable creates only type 'float'
Date   Mon, 14 Jul 2008 23:41:44 +0100 (BST)

--- Hewan Belay <[email protected]> wrote:
> It appears that the command to estimate missing values, -impute-,
> always generates the new predicted value as a 'float' type. -impute-
> doesn't seem to have an option for setting the type. Even when I set
> the type to double permanently, -impute- still creates 'float'
> variables. It's a problem because I want to do some comparisons
> between the original variable and the imputed variable, and I found
> that differences are not only due to the missing values, but also
> because, as type float, the newly estimated variable has different
> values for large numbers due to 'float's imprecision. 

The answer is that you shouldn't use -impute- at all. This is discussed
here: http://www.stata.com/statalist/archive/2007-12/msg00507.html 
Use -ice- instead.

-- Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


      __________________________________________________________
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index