Date: Thu, 10 Apr 2003 16:32:16 -0400
Reply-To: Jay Weedon <jweedon@EARTHLINK.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Jay Weedon <jweedon@EARTHLINK.NET>
Organization: http://extra.newsguy.com
Subject: Re: dropping a particular event in an event variable,
but not the entire variable
Content-Type: text/plain; charset=us-ascii
On 10 Apr 2003 13:18:57 -0700, prophecy33@hotmail.com (Ren) wrote:
>I tried the below programming and got an error "variable flu is not on
>file work.epi" and I wasn't sure if it is my drop statement or if
>that statement is correct. I just want to drop the flu event, but
>keep the others, but not out of all my analyses, just a few so I
>figure the DROP + is best. Any suggestions are helpful, thanks
>
>
>data epi (DROP = myevent where= (flu) );
>set epi2;
>
>PROC CHART data=epi2;
>VBAR MYEVENT / TYPE=PERCENT;
>run;
I suspect that you're confusing variables with values of variables.
I'm guessing that myevent is a character variable, and that 'flu' is
one possible value of that variable. In which case you don't need a
data step, you could try something like
PROC CHART data=epi2;
where myevent^='flu';
VBAR MYEVENT / TYPE=PERCENT;
run;
JW
|