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