| |
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Dear statalist,
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/