working with Ranges

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

working with Ranges

Wade Hiscock
Hi all,

I have this data and I want to show a range that contains 95% of
them...ie.
95% of data falls between these two values.  I would then like to repeat

this using whatever % I desire, like 80%, 70% etc.

If someone can show me the syntax for this it would be greatly
appreciated.

Cheers.
Wade

Wade Hiscock
Fisheries Biologist
Centre for Sustainable Aquatic Resources (CSAR)
<http://www.mi.mun.ca/csar>
Marine Institute of Memorial University of Newfoundland
P.O. Box 4920, St. John's, Newfoundland, Canada
A1C 5R3

Tel.: (709) 778-0366
Fax.: (709) 778-0661
My Research
<http://www.mun.ca/research/directory/index.php?content=browse.php&resea
rcher=477>

====================To manage your subscription to SPSSX-L, send a message to
[hidden email] (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
Reply | Threaded
Open this post in threaded view
|

Re: working with Ranges

Marta Garcia-Granero
Wade Hiscock wrote:
> I have this data and I want to show a range that contains 95% of
> them...ie.
> 95% of data falls between these two values.  I would then like to repeat
>
> this using whatever % I desire, like 80%, 70% etc.
>
> If someone can show me the syntax for this it would be greatly
> appreciated.
>
Use FREQUENCIES and ask for percentiles:

95% range: percentiles 2.5 & 97.5
95% range.percentiles 5 & 95
80% range: percentiles 10 & 90

and so on

See this example:

DATA LIST FREE/copper(F8.2).
BEGIN DATA
0.70 0.45 0.72 0.30 1.16 0.69 0.83 0.74 1.24 0.77
0.65 0.76 0.42 0.94 0.36 0.98 0.64 0.90 0.63 0.55
0.78 0.10 0.52 0.42 0.58 0.62 1.12 0.86 0.74 1.04
0.65 0.66 0.81 0.48 0.85 0.75 0.73 0.50 0.34 0.88
END DATA.
VARIABLE LABEL copper 'Urinary copper (µmol/24hr)'.

FREQUENCIES
  VARIABLES=copper
  /FORMAT=NOTABLE
  /PERCENTILES= 2.5 5 10 90 95 97.5.

HTH,
Marta García-Granero

--
For miscellaneous statistical stuff, visit:
http://gjyp.nl/marta/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (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