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

st: data manipulation

From   <[email protected]>
To   [email protected]
Subject   st: data manipulation
Date   Tue, 02 Jul 2002 14:18:11 -0400

Hello list,
I have a data set like the following.

zipcode	region quantity revenue flag month year

I would like to replace the value of region by its value corresponding to
higher quantity by zipcode. For example, for zipcode "37075", I would like to
replace the region's value of "11" by "04" since region "04" has higher
quantity. The new data set will look like the following:

Can anyone please help me? Thank you.

Pinaki Mitra

*   For searches and help try:

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