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.

1086 NPAR TESTS<br />

• If more than 0.667 of the cases have value 0 for V1, BINOMIAL gives the probability of<br />

observing that many or more values of 0 in a binomial distribution with probability 0.667.<br />

If fewer than 0.667 of the cases are 0, the test will be of observing that many or fewer.<br />

CHISQUARE Subcommand<br />

<strong>Syntax</strong><br />

NPAR TESTS CHISQUARE=varlist [(lo,hi)] [/EXPECTED={EQUAL** }]<br />

{f1,f2,... fn}<br />

The CHISQUARE (alias CHI-SQUARE) one-sample test computes a chi-square statistic based on<br />

the differences between the observed and expected frequencies of categories of a variable. By<br />

default, equal frequencies are expected in each category. The output includes the frequency<br />

distribution, expected frequencies, residuals, chi-square, degrees of freedom, and probability.<br />

Operations<br />

Example<br />

• The minimum specification is a list of variables to be tested. Optionally, you can specify<br />

a value range in parentheses following the variable list. You can also specify expected<br />

proportions with the EXPECTED subcommand.<br />

• If you use the EXPECTED subcommand to specify unequal expected frequencies, you<br />

must specify a value greater than 0 for each observed category of the variable. The<br />

expected frequencies are specified in ascending order of category value. You can use the<br />

notation n*f to indicate that frequency f is expected for n consecutive categories.<br />

• Specifying keyword EQUAL on the EXPECTED subcommand has the same effect as omitting<br />

the EXPECTED subcommand.<br />

• EXPECTED applies to all variables specified on the CHISQUARE subcommand. Use<br />

multiple CHISQUARE and EXPECTED subcommands to specify different expected proportions<br />

for variables.<br />

• If no range is specified for the variables to be tested, a separate Chi-Square Frequency<br />

table is produced for each variable. Each distinct value defines a category.<br />

• If a range is specified, integer-valued categories are established for each value within the<br />

range. Noninteger values are truncated before classification. Cases with values outside<br />

the specified range are excluded. One combined Chi-Square Frequency table is produced<br />

for all specified variables.<br />

• Expected values are interpreted as proportions, not absolute values. Values are summed,<br />

and each value is divided by the total to calculate the proportion of cases expected in the<br />

corresponding category.<br />

• A test statistic is calculated for each variable specified.<br />

NPAR TESTS CHISQUARE=V1 (1,5) /EXPECTED= 12, 3*16, 18.

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

Saved successfully!

Ooh no, something went wrong!