Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: How to expand the data using set-variables


From   Badri <badrinarayanang@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: How to expand the data using set-variables
Date   Sat, 23 Oct 2010 19:18:37 -0400

Dear Statalist users

I have a global tariff data that contains observations corresponding
to sectors (defined by variable sec), exporters (defined by variable
exp) and importers (defined by variable imp). Both exp and imp are
sets, but defined in numbers.

While there is data for all observations corresponding to exp and imp
elements that are not identical ( exp!=imp), there are no observations
where exp==imp. Now I want to expand the data by a number of
observations that have exp==imp. I know the number of observations
required to do this. Is there any way I can do this in stata? Mata
programming or other simpler ways?

Any help in this regard will be greatly appreciated!

--
With Warm Regards
_____________________________________________
Dr. Badri Narayanan. G.
=======================================
Research Economist,
Center for Global Trade Analysis,
Purdue University,
403 W. State Street
West Lafayette, IN 47907-2056
USA
=======================================
Webpage: http://www.gtap.agecon.purdue.edu/network/member_display.asp?UserID=5365
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index