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.

602 FREQUENCIES<br />

NONORMAL Suppress the normal curve. This is the default.<br />

Example<br />

FREQUENCIES VAR=V1 /HIST=NORMAL.<br />

• FREQUENCIES requests a histogram with a superimposed normal curve.<br />

GROUPED Subcommand<br />

When the values of a variable represent grouped or collapsed data, it is possible to estimate<br />

percentiles for the original, ungrouped data from the grouped data. The GROUPED subcommand<br />

specifies which variables have been grouped. It affects only the output from the<br />

PERCENTILES and NTILES subcommands and the MEDIAN statistic from the STATISTICS<br />

subcommand.<br />

• Multiple GROUPED subcommands can be used on a single FREQUENCIES command.<br />

Multiple variable lists, separated by slashes, can appear on a single GROUPED subcommand.<br />

• The variables named on GROUPED must have been named on the VARIABLES subcommand.<br />

• The value or value list in the parentheses is optional. When it is omitted, the program<br />

treats the values of the variables listed on GROUPED as midpoints. If the values are not<br />

midpoints, they must first be recoded with the RECODE command.<br />

• A single value in parentheses specifies the width of each grouped interval. The data<br />

values must be group midpoints, but there can be empty categories. For example, if you<br />

have data values of 10, 20, and 30 and specify an interval width of 5, the categories are<br />

10 ± 2.5, 20 ± 2.5, and 30 ± 2.5. The categories 15 ± 2.5 and 25 ±<br />

2.5 are empty.<br />

• A value list in the parentheses specifies interval boundaries. The data values do not have<br />

to represent midpoints, but the lowest boundary must be lower than any value in the data.<br />

If any data values exceed the highest boundary specified (the last value within the parentheses),<br />

they will be assigned to an open-ended interval. In this case, some percentiles<br />

cannot be calculated.<br />

Example<br />

RECODE AGE (1=15) (2=25) (3=35) (4=45) (5=55)<br />

(6=65) (7=75) (8=85) (9=95)<br />

/INCOME (1=5) (2=15) (3=25) (4=35) (5=45)<br />

(6=55) (7=65) (8=75) (9=100).<br />

FREQUENCIES VARIABLES=AGE, SEX, RACE, INCOME<br />

/GROUPED=AGE, INCOME<br />

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

• The AGE and INCOME categories of 1, 2, 3, and so forth are recoded to category<br />

midpoints. Note that data can be recoded to category midpoints on any scale; here AGE<br />

is recoded in years, but INCOME is recoded in thousands of dollars.<br />

• The GROUPED subcommand on FREQUENCIES allows more accurate estimates of the<br />

requested percentiles.

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

Saved successfully!

Ooh no, something went wrong!