Statalist


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

st: RE: RE: list command


From   "Daniel Sepulveda-Adams" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: list command
Date   Mon, 4 Aug 2008 10:22:49 -0500

Well I need them ask a code, I can not destring them. Maybe I ask my
question in the wrong way, but in general what I need is to figure it out
what "ndc" has more than 2 "gpi" and that gpi is a code with 14 digit.

Daniel A. Sepulveda Adams
Research Scientist - PRIME Institute
College of Pharmacy - University of Minnesota
308 Harvard ST SE, Weaver Densford Hall, 7-159
Minneapolis, MN, 55455, USA
Phone: 612-624-8489
Cell Phone: 651-295-7771
Fax: 612-625-9931
Email: [email protected]
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Martin Weiss
Sent: Monday, August 04, 2008 10:18 AM
To: [email protected]
Subject: st: RE: list command

Well, how is Stata supposed to figure out whether string "2" is greater than
string "3"? Numbers in the format of string have no natural order. Just
-destring- them.


HTH
Martin Weiss
_________________________________________________________________

Diplom-Kaufmann Martin Weiss
Mohlstrasse 36
Room 415
72074 Tuebingen
Germany

Fon: 0049-7071-2978184

Home: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1130

Publications: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1131

SSRN: http://papers.ssrn.com/sol3/cf_dev/AbsByAuth.cfm?per_id=669945


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Daniel
Sepulveda-Adams
Sent: Monday, August 04, 2008 5:04 PM
To: [email protected]
Subject: st: list command

Hi,

I have a question about list command; this is what I'm doing:

list ndc old_ndc e49_ gpi g64_ if gpi>"2"

gpi is a str variable (it is a 14 digit code) & I know is wrong but I can
not figure it out how I can ask the program give me all ndc that has 2 or
more gpi.Thanks

Regards -- DSA


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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