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

st: Keep string data

From   <[email protected]>
To   [email protected]
Subject   st: Keep string data
Date   Fri, 9 Aug 2002 11:00:10 +0000

Hi statalisters,

I have a dataset that contains information on the number of 
registrations within a certain year for different cancer sites. The 
variable name is siteterm and is stored at string10 type. When I am 
analysisng the data I need to keep and drop certain cancer sites 
however I am having trouble doing this. I have no problem dropping 
variables that are stored as int and byte types for example
keep if year==1996
but when I try to do the following
keep if siteterm==lung
I have the error "lung not found; r(111)" returned.
Any advice would be appreciated as this is the last stumbling 
block I am having in relation to my project.
Thanks in advance,

Christopher D Fergusson 

Freeserve AnyTime, only �13.99 per month with one month's FREE trial!
For more information visit or call free on 0800 970 8890

*   For searches and help try:

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