I have two vectors of variables, X and Z. I wish to copy the values of each
of the elements of Z to the corresponding (in terms of variable order)
element in X. Would the 'foreach' command be most suitable for this purpose
or would something simpler suffice? Thanks in advance,
Patrick
Dr Patrick Sturgis
Department of Sociology
University of Surrey
Guildford
GU27 1JF
tel: 01428 641 007
e-mail: [email protected]
*
* 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/