Statalist


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

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


From   Richard Williams <[email protected]>
To   [email protected], Stata List <[email protected]>
Subject   Re: st: RE: RE: -impute- variable creates only type 'float'
Date   Tue, 15 Jul 2008 19:45:51 -0500

At 06:16 PM 7/15/2008, Hewan Belay wrote:
So far apparently no "defender" of -impute- stood up to comment on this--I would still appreciate any remarks on this issue if anyone can confirm or otherwise correct my finding with regard to format type of -impute-, which apparently to-date is the only of the 3 that is an official stata command for imputing missing values.
I haven't tried this - but try copying impute.ado and name it impute2.ado. Change the name on the program line accordingly. Where "float" appears in the program, change it to "double." Try it out, and test carefully to make sure it is actually doing what you want.

If you don't need all that precision, you might also consider using -recast- on your original vars (or better yet clones of them). See -help recast-.

Assuming you are right, I am a bit surprised that impute does not create double-precision vars when the original var is double-precision. I guess you can add loss of precision to the problems with the impute command.


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME: (574)289-5227
EMAIL: [email protected]
WWW: http://www.nd.edu/~rwilliam

*
* 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