I am trying to compute weighted median with survey data. Although I can write a loop to cout the weights of each sample and then compute the weighted median, my way takes about 10-20 minutes to compute the weighted median of 14,000 observations. Could anyone tell me how to do this faster in Limdep? Thank you in advance. Ming 09/20/07