LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (February 2000, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 15 Feb 2000 12:06:52 -0600
Reply-To:     jeremy@wundt.psychiatry.uiowa.edu
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         H Jeremy Bockholt <jeremy-bockholt@UIOWA.EDU>
Organization: University of Iowa MHCRC IPL
Subject:      SAS novice question
Content-Type: text/plain; charset=us-ascii

In SAS, is there a way to directly access a value of a variable when there is more then one value?

example record -------------------------------- id method var1 var 2 ... var10 1 1 2 3 2 1 2 3 4 6 2 1 1 5 4 2 2 2 2 6 -------------------------------

I have a method variable with 2 levels{1,2}, so each of my var1-var10 has 2 values for each id.

I want to be able to refer directly to var1 at a specific method level. Let's say I want to calculate

diff=var1[method==1] - var[method==2]

Is there an easy way to do this?

thanks in advance for any advice, jeremy

-- H Jeremy Bockholt MH-CRC Neuroimaging Lab Database Analyst 2-126f MEB UI College of Medicine Iowa City IA work_phone: 335-8209 http://iowa-mhcrc.psychiatry.uiowa.edu/neuroimaging


Back to: Top of message | Previous page | Main SAS-L page