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/