Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: RE: the impute command


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: the impute command
Date   Wed, 19 May 2004 18:12:14 +0100

Agreed. The "here" was carrying a lot of weight 
in my statement. In general, -logit- is surely 
better than -regress- for predicting 0-1 variables;  
in that context -round()- should be unproblematic. 

Nick 
[email protected] 

Richard Williams
> 
> At 05:40 PM 5/19/2004 +0100, Nick Cox wrote:
> >. replace y = round(y)
> >
> >is an alternative to -recode- here.
> 
> It works in the case of the example I gave, where -logit- is 
> used.  The 
> -round- function could potentially be problematic if you were 
> using the 
> -impute- command, because you could conceivably have an 
> imputed value of, 
> say, 1.51, which would get rounded to two.  A more 
> all-purpose recode would be
> 
> recode y (min/.50 = 0)(.50/max = 1).
> 

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