
From  Klaus Haberkern <haberkern@soziologie.unizh.ch> 
To  ChiungYa Tang <chiungya.tang@gmail.com> 
Subject  Re: st: How to create a new variable which contains the responsefrom anot= 
Date  Tue, 06 Mar 2007 12:27:51 +0100 
her member
Date: Sun, 4 Mar 2007 20:06:50 0500
MessageID: <002301c75ec2$8ebe21c0$6401a8c0@Saturdaynight>
MIMEVersion: 1.0
ContentType: text/plain;
=09charset=3D"UTF8"
XMailer: Microsoft Office Outlook 11
XMimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
ThreadIndex: Acdewo3xDbzlOHAwQ/aMhHOZCSj6qg=3D=3D
ContentTransferEncoding: 8bit
XMIMEAutoconverted: from quotedprintable to 8bit by hsphsun2.harvard.edu=
id l2517LJ10855
Sender: ownerstatalist@hsphsun2.harvard.edu
Precedence: bulk
ReplyTo: statalist@hsphsun2.harvard.edu
ErrorsTo: statalistowner@hsphsun2.harvard.edu
Hi,
I am learning STATA and would like to use it to analyze a set of dyadic dat=
a. The data is as following:
Group member V1
=E3=80=801 1 3.2
=E3=80=801 2 4.5
=E3=80=802 1 3.1
=E3=80=802 2 3.3
=E3=80=803 1 .
=E3=80=803 2 2.3
I wish to generate a new variableV2 in which responses from V1 are exchan=
ged within a group. So, it should look like this:
Group member V1 V2
=E3=80=801 1 3.2 4.5
=E3=80=801 2 4.5 3.2
=E3=80=802 1 3.1 3.3
=E3=80=802 2 3.3 3.1
=E3=80=803 1 . 2.3
=E3=80=803 2 2.3 .
I searched commands as well information from Statalist archives but still h=
aven't figured out how to do that correctly. While keeping learning new com=
mands, I definitely appreciate any help from you. Thank you.
Sincerely,
Chiungya
=E3=80=80
=E3=80=80
=E3=80=80
=E3=80=80
*
* 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/
* * 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–2015 StataCorp LP  Terms of use  Privacy  Contact us  What's new  Site index 