Date: Thu, 1 Jan 2009 13:28:31 -0600
Reply-To: Ariel Barak <abarakabarak@gmail.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Ariel Barak <abarakabarak@gmail.com>
Subject: Re: Deleting negatives
In-Reply-To: <26359.91465.qm@web45101.mail.sp1.yahoo.com>
Content-Type: text/plain; charset=ISO-8859-1
Hi Humphrey,
Here is tested code that works...happy to help.
-Ariel
DATA LIST LIST /Score (F8).
BEGIN DATA
-78
80
-55
65
END DATA.
DATASET NAME Original.
COMPUTE AbsoluteScore=ABS(Score).
DESCRIPTIVES VARIABLES=AbsoluteScore
/STATISTICS=MEAN STDDEV MIN MAX.
On Thu, Jan 1, 2009 at 12:01 PM, Humphrey Paulie
<humphreyyy1000@yahoo.com>wrote:
> Dear all,
> I have a variable that has both negative and positive values. I want to
> compute the mean of the absolute values, i.e., without considering the
> negative signs. I want to treat all negative values as positive and compute
> a mean. How can I do this in SPSS?
> Thanks a lotHumphrey
>
> =====================
> To manage your subscription to SPSSX-L, send a message to
> LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD
>
=====================
To manage your subscription to SPSSX-L, send a message to
LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
|