27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example<br />

FREQUENCIES 603<br />

FREQUENCIES VARIABLES=TEMP<br />

/GROUPED=TEMP (0.5)<br />

/NTILES=10.<br />

• The values of TEMP (temperature) in this example were recorded using an inexpensive<br />

thermometer whose readings are precise only to the nearest half degree.<br />

• The observed values of 97.5, 98, 98.5, 99, and so on, are treated as group midpoints,<br />

smoothing out the discrete distribution. This yields more accurate estimates of the deciles.<br />

Example<br />

FREQUENCIES VARIABLES=AGE<br />

/GROUPED=AGE (17.5, 22.5, 27.5, 32.5, 37.5, 42.5, 47.5<br />

52.5, 57.5, 62.5, 67.5, 72.5, 77.5, 82.5)<br />

/PERCENTILES=5, 10, 25, 50, 75, 90, 95.<br />

• The values of AGE in this example have been estimated to the nearest five years. The first<br />

category is 17.5 to 22.5, the second is 22.5 to 27.5, and so forth. The artificial clustering<br />

of age estimates at multiples of five years is smoothed out by treating AGE as grouped<br />

data.<br />

• It is not necessary to recode the ages to category midpoints, since the interval boundaries<br />

are explicitly given.<br />

PERCENTILES Subcommand<br />

PERCENTILES displays the value below which the specified percentage of cases falls. The<br />

desired percentiles must be explicitly requested. There are no defaults.<br />

Example<br />

FREQUENCIES VAR=V1 /PERCENTILES=10 25 33.3 66.7 75.<br />

• FREQUENCIES requests the values for percentiles 10, 25, 33.3, 66.7, and 75 for V1.<br />

NTILES Subcommand<br />

NTILES calculates the percentages that divide the distribution into the specified number of<br />

categories and displays the values below which the requested percentages of cases fall. There<br />

are no default ntiles.<br />

• Multiple NTILES subcommands are allowed. Each NTILES subcommand generates separate<br />

percentiles. Any duplicate percentiles generated by different NTILES subcommands<br />

are consolidated in the output.<br />

Example<br />

FREQUENCIES VARIABLE=V1 /NTILES=4.<br />

• FREQUENCIES requests quartiles (percentiles 25, 50, and 75) for V1.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!