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

st: Matching observations


From   "Sen Kunal Dr (DEV) d011" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: Matching observations
Date   Fri, 8 Jul 2005 17:30:29 +0100

This may seem like a simple question, but I am a beginner in STATA:

I have observations on individuals for various cities. I would like to
transform my data such that I generate pairs from all possible combinations
of individuals for each city. So if there are 4 individuals for a particular
city, I have 6 pairs (AB, but ruling out BA). How do I do this?

Then I would like to generate a dummy which takes the value one if the pair
satisfies a particular condition (both individuals have arrived in the city
from a particular region outside the city), zero otherwise. How can I do
this?

many thanks in advance,

Kunal    
____________________________________________

Kunal Sen
Reader in Economics
School of Development Studies
University of East Anglia
Norwich NR4 7TJ
United Kingdom
___________________________________________ 
*
*   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