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 />

NPAR TESTS 1089<br />

NPAR TESTS /J-T=V1 BY V2(0,4)<br />

/METHOD=EXACT.<br />

• This example performs the Jonckheere-Terpstra test for groups defined by values 0<br />

through 4 of V2. The exact p values are calculated.<br />

K-S Subcommand (One-Sample)<br />

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

NPAR TESTS K-S({NORMAL [mean,stddev]})=varlist<br />

{POISSON [mean] }<br />

{UNIFORM [min,max] }<br />

{EXPONENTIAL [mean] }<br />

The K-S (alias KOLMOGOROV-SMIRNOV) one-sample test compares the cumulative<br />

distribution function for a variable with a uniform, normal, Poisson, or exponential<br />

distribution, and it tests whether the distributions are homogeneous. The parameters of the test<br />

distribution can be specified; the defaults are the observed parameters. The output shows the<br />

number of valid cases, parameters of the test distribution, most-extreme absolute, positive, and<br />

negative differences, Kolmogorov-Smirnov Z, and two-tailed probability for each variable.<br />

Operations<br />

The minimum specification is a distribution keyword and a list of variables. The distribution<br />

keywords are NORMAL, POISSON, EXPONENTIAL, and UNIFORM.<br />

• The distribution keyword and its optional parameters must be enclosed within parentheses.<br />

• The distribution keyword must be separated from its parameters by blanks or commas.<br />

NORMAL [mean, stdev] Normal distribution. The default parameters are the observed mean<br />

and standard deviation.<br />

POISSON [mean] Poisson distribution. The default parameter is the observed mean.<br />

UNIFORM [min,max] Uniform distribution. The default parameters are the observed minimum<br />

and maximum values.<br />

EXPONENTIAL [mean] Exponential distribution. The default parameter is the observed mean.<br />

• The Kolmogorov-Smirnov Z is computed from the largest difference in absolute value<br />

between the observed and test distribution functions.<br />

• The K-S probability levels assume that the test distribution is specified entirely in<br />

advance. The distribution of the test statistic and resulting probabilities are different<br />

when the parameters of the test distribution are estimated from the sample. No correction<br />

is made.<br />

• For a mean of 100,000 or larger, a normal approximation to the Poisson distribution is<br />

used.

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

Saved successfully!

Ooh no, something went wrong!