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

st: problem with merge

From   "Ann E Fitzmaurice" <[email protected]>
To   <[email protected]>
Subject   st: problem with merge
Date   Tue, 7 Jun 2005 11:29:28 +0100


I have variables of the format in one file from dhs
1002 9
in a separate file I concatenate two variables and the format becomes
what I would like to do is to eliminate the blanks from the variables in
each file using trim but cannot get it to work, and then to split the
variable caseid1 into two variables to remove the blank in the middle and
then rejoin the two variables so that I can merge

the one file has details relating to household, one line per household, the
second file has details relating to the household member so want the
household details to be applied to all household members
can anyone help



Ann E Fitzmaurice
Medical Statistician

University of Aberdeen
Department of Obstetrics & Gynaecology
Aberdeen Maternity Hospital
Cornhill Road, Aberdeen.  AB25 2ZL

Tel:  +44 (0) 1224 553876
Fax: +44 (0) 1224 553708
e-mail: [email protected]


*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index