Date: Wed, 5 Nov 2008 11:02:19 -0600
Reply-To: "Oliver, Richard" <roliver@spss.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: "Oliver, Richard" <roliver@spss.com>
Subject: Re: percentiles
In-Reply-To: A<4911CA74.8060500@sanigest.com>
Content-Type: text/plain; charset="iso-8859-1"
One solution is to use OMS to extract the results from Frequencies, as this example from the Programming and Data Management book illustrates:
GET FILE='Employee data.sav'.
PRESERVE.
SET TVARS NAMES TNUMBERS VALUES.
DATASET DECLARE freq_table.
***split file by job category to get group percentiles.
SORT CASES BY jobcat.
SPLIT FILE LAYERED BY jobcat.
OMS
/SELECT TABLES
/IF COMMANDS=['Frequencies'] SUBTYPES=['Statistics']
/DESTINATION FORMAT=SAV
OUTFILE='freq_table'
/COLUMNS SEQUENCE=[L1 R2].
FREQUENCIES
VARIABLES=salary
/FORMAT=NOTABLE
/PERCENTILES= 25 50 75.
OMSEND.
***restore previous SET settings.
RESTORE.
MATCH FILES FILE=*
/TABLE='freq_table'
/rename (Var1=jobcat)
/BY jobcat
/DROP command_ TO salary_Missing.
EXECUTE.
-----Original Message-----
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of Rodrigo Briceño
Sent: Wednesday, November 05, 2008 10:32 AM
To: SPSSX-L@LISTSERV.UGA.EDU
Subject: percentiles
Dear SPSS users.
I have a database with some groups of data (groups based on categories
of patients). For each group of patients I must estimate the percentage
of outliers (using the rule of percentile 25-1.5 IQR and percentile 75+
1.5 IQR).
For that purpose I need to find how to construct the 25th percentile and
the 75th percentile in each group of patient, and get these values as
new variables. I found many references to percentiles in frequencies,
tables, explore and other SPSS commands, but nothing about what function
to use in order to COMPUTE these values as new variables.
Anyone could help me please?
Thanks for your time.
--
__________________________________________________________________
*Rodrigo Briceño*
Project Manager
Sanigest Internacional
+506 22-91-12-00 ext. 113 * Oficina* *Costa Rica*
+506 22-32-08-30 *Fax
*+506 88-86-11-77* Celular**
*rbriceno@sanigest.com <mailto:mail@sanigest.com>
www.sanigest.com <http://www.sanigest.com/>
MSN: jbric98@hotmail.com <mailto:jbric98@hotmail.com>
SKYPE: rbriceno1087
_____________________
This communication contains legal information which is privileged and
confidential. It is for the exclusive use of the address and
distribution, dissemination, copying or use by others is strictly
prohibited. If you have received this communication by error, please
delete the original message and e-mail us.
Esta comunicación contiene información legal privilegiada y confidencial
para el uso exclusivo del destinatario. La distribución, diseminación,
copia u otro uso por terceras personas es estrictamente prohibida. Si
usted ha recibido esta comunicación por error, le rogamos borrar el
mensaje original y comunicárnoslo a esta misma dirección.
=====================
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