Statalist The Stata Listserver

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

st: generating new observations

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


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.


Kremena Platikanova
Ph.D. Candidate
Department of Economics
University of Colorado, Boulder
*   For searches and help try:

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