23 Jul
2013
23 Jul
'13
12:45 a.m.
I have a database which I imported from excel into EpiData stat, the unique IDs are string e.g (cdh01/09, cdh02/09......cdg01/09,cdg/02/09....). How can I select a data set with only "cdh" for further analysis?
Walter
23 Jul
23 Jul
12:41 p.m.
Dear Walter:
gen s(3) newid=substr(id,1,3) select newid="cdh" savedata "newset.rec" /replace
Regards,
Hans
On 23-Jul-13 07:45, epidata-list@lists.umanitoba.ca wrote:
I have a database which I imported from excel into EpiData stat, the unique IDs are string e.g (cdh01/09, cdh02/09......cdg01/09,cdg/02/09....). How can I select a data set with only "cdh" for further analysis?
Walter
--
Hans L Rieder, MD, MPH
Jetzikofenstr 12
3038 Kirchlindach
Switzerland
Tel: +41 31 829 4577
Mob: +41 79 321 9122
Web: http://www.tbrieder.org
4169
Age (days ago)
4169
Last active (days ago)
1 comments
1 participants
participants (1)
-
epidata-list@lists.umanitoba.ca