Statalist


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

st: AW: list command


From   Jochen Späth <jochen.spaeth@iaw.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: list command
Date   Mon, 4 Aug 2008 17:23:38 +0200

Dear Daniel,

why don't you just destring your string variable with one of the following commands and then re-run your 'list'-command replacing 'gpi' with 'newvar'?

'destring gpi, gen(newvar)'		or

'gen newvar = real(gpi)'

Best,
Jochen

-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Daniel Sepulveda-Adams
Gesendet: Montag, 4. August 2008 17:04
An: statalist@hsphsun2.harvard.edu
Betreff: 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/



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