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]

st: still for Stata 14: a new cases function complementing cond and recode


From   László Sándor <[email protected]>
To   [email protected]
Subject   st: still for Stata 14: a new cases function complementing cond and recode
Date   Thu, 12 Sep 2013 17:29:41 -0400

It would be nice to have a "cases" function built in, instead of
resorting to nested conds as the only, unpopular alternative to many
lines of "replace if"s following an initial -gen-. Way too many
processor hours are wasted worldwide on not having a function like
-recode()- but only slightly complicated:
cases(condition1,value1,condition2,value2,…,value_if_none_true)

Btw, this would also make the ridiculously slow -recode- command obsolete.

Thanks,

Laszlo

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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