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

st: Recode slow

From   Brendan Halpin <>
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

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
*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index