Date: Wed, 15 May 2002 16:24:34 -0600
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Jet Li <jet_li@SOFTHOME.NET>
Subject: Re: Help please
Content-Type: text/plain; format=flowed; charset="iso-8859-1"
There are 2 visits and I want to get the percentage of patients who answered
either 1 or 4 for each question by each visit.
question no. visit % of patients(who scored 1 or 4)
1 1 25%
1 2 35%
2 1 26%
2 2 37%
Each of the patients has to answer all the 20 questions which will be scored
1,2,3, & 4. But I need to find the percentage of patients who scored either
1 or 4 only by question & visit.
Paul R Swank writes:
> How do you want to handle the visits? I assume some have different numbers
> of visits. Do you want to aggregate across visits or do it separately by
> visit? Do they have to answer 1 or 4 to any question, or all of the
> questions, or do you want it by question?
> Paul R. Swank, Ph.D.
> Professor, Developmental Pediatrics
> Medical School
> UT Health Science Center at Houston
> -----Original Message-----
> From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU]On Behalf Of Jet
> Sent: Wednesday, May 15, 2002 4:26 PM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: Help please
> Hi all,
> I have 100 patients answering 20 questions on each of their visit. Their
> answers are scored as 1,2,3&4
> I want to find the percentage of each patients on each visit who's answers
> were either 1 or 4
> I tried creating a flag for each of the question and i think that is not the
> real solution. Can anyone provide me with a simpler solution?