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

st: Recode slow


From   Brendan Halpin <[email protected]>
To   [email protected]
Subject   st: Recode slow
Date   25 Oct 2005 10:07:07 +0100

Is it normal that recode should be very slow with large numbers of
"rules"? I find a recode statement with >400 value assignments adds
something of the order of a minute to a job.

N is moderately large (75k) but I wonder if recode is linear in N
but non-linear in the number of rules or assignments.

If so, any tips for efficiency? Break up the command into several
smaller recodes? Ship out the equivalences to a lookup table and
merge?

Brendan
-- 
Brendan Halpin,  Department of Sociology,  University of Limerick,  Ireland
Tel: w +353-61-213147 f +353-61-202569 h +353-61-338562; Room F2-025 x 3147
mailto:[email protected]  http://www.ul.ie/sociology/brendan.halpin.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