Could you provide some sample data to the list?
The suggested solutions will vary depending on the layout of your data. For
example, does a single observation represent the team or an individual
Center for Health Program Development and Management
University of Maryland, Baltimore County
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Tara
Sent: Thursday, January 04, 2007 9:09 AM
Subject: Calculating differences between team members
I am trying to calculate a formula where I need the sum of the squared
differences between 3 people on a team (I have 24 teams of 3 people) for the
so for example, for attitude toward a team project, I need to calculate the
value of one team member's attitude score subtracted from the second member,
and then subtracted from the third member.
then square each difference, and sum up all three sq differences.
I can figure out the latter part, but having trouble figuring out how I can
hold the first person's value in memory, while getting the second person's
value (could use _point ?) and doing the subtraction
but then also a needing the third person's value (can I use another
_point--can't seem to figure out how in the same do loop)?
any ideas are appreciated! thanks, Tara
University of Nebraska-Lincoln
Gallup Leadership Institute
"People take different roads seeking fulfillment and happiness. Just because
they're not on your road doesn't mean they have gotten lost." ~Cesare di