Statalist The Stata Listserver


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

st: Dear statalist,


From   "Phillip Sinclair" <sinclairp@Cardiff.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Dear statalist,
Date   Thu, 10 May 2007 12:51:11 +0100

Dear statalist,

I have a data list of the following form:

1. pupil id ... friend id
2. pupil id ... friend id
3. etc

Each pupil can have several friends, each listed as a separate case i.e. there can be several cases with the same pupil id each case identifying a separate friend.
I wish to create a new variable to identify reciprocated friendship choices  e.g. where pupil A names pupil B as a friend and pupil B names pupil A as a friend.
Please can you tell me of a simple way of doing this in STATA.

Regards,
Philip



++++++++++++++++++++++++++++++++++++
Dr. Philip A. Sinclair PhD (Lond) MSc BSc
Associate Researcher
Cardiff Institute of Society, Health and Ethics,
Cardiff University,
53 Park Place,
Cardiff CF10 3AT,
Wales UK
Tel +44(0)29 2087 9160
++++++++++++++++++++++++++++++++++


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index