Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Seeking help in stata


From   Thaddee Badibanga <tbadibanga@yahoo.fr>
To   statalist@hsphsun2.harvard.edu
Subject   st: Seeking help in stata
Date   Fri, 14 Dec 2007 09:03:45 +0100 (CET)

Hi guys,

I am sending this message to seek help in stata. In
fact, I am cleaning the data for a research project I
am involved in. I'd like to create an index from a
variable which is a pseudo numeric or a string(numeric
as well character). This index will allow me to
eliminate some observations in the dataset. To give
you an idea, the variable I termed codeks is as
follows:
codeks:101 102 01A 01X 0AX ...103 ... 111 112 ...11111

I'd like to create an index that assigns 1 if codeks
includes A or X or AX and 0 otherwise. I have done
this in other programs. In one program for instance,
this can be done as:
found=indexc(codeks,"A","X")

I will really appreciate your help. I have spent more
than 3 hours without success.
Thank you.
Badi
 





      _____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr

*
*   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–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index