Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: generating new observations


From   Kremena Platikanova <[email protected]>
To   [email protected]
Subject   st: generating new observations
Date   Wed, 29 Mar 2006 10:45:05 -0700

Hi,

I have a data set with the following variables:

importer     exporter     commoditycode   tradevalue

Belgium      Argentina    1               123
Belgium      Argentina    2               456
Luxemburg    Argentina    1               789
Luxembourg   Argentina    3               147

I want to generate new observations such that importer is Belgium-Luxembourg
and tradevalue is the combined trade value for the two countries for the
respective commodity.

Can someone tell me how I can do that?

Sorry if it is a very simple question. I am new to stata and I have looked at
all the resources available to me but could not find a solution.

Thanks.

Kremena
--
Kremena Platikanova
Ph.D. Candidate
Department of Economics
University of Colorado, Boulder
*
*   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