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.

44 Universals<br />

HYPER Hypergeometric distribution. The hypergeometric distribution takes<br />

three parameters, a, b, and c, where a is the total number of objects in<br />

an urn model, b is the number of objects randomly drawn without<br />

replacement from the urn, c is the number of objects with distinct<br />

characteristics. All three parameters are positive integers, and both b<br />

and c must be less than or equal to a. The CDF, PDF, and RV functions<br />

are available, where q is the number of objects with these distinct<br />

characteristics observed out of the withdrawn objects.<br />

NEGBIN Negative binomial distribution. The negative binomial distribution takes<br />

one threshold parameter, a, and one success probability parameter, b.<br />

Parameter a must be an integer and parameter b must be greater than 0<br />

and less than or equal to 1. The CDF, PDF, and RV functions are available,<br />

where q is the number of trials needed (including the last trial) before a<br />

successes are observed. If a=1, it is a geometric distribution.<br />

POISSON Poisson distribution. The Poisson distribution takes one rate or<br />

mean parameter, a. Parameter a must be positive. The CDF, PDF,<br />

and RV functions are available, where q is a non-negative integer. The<br />

Poisson distribution is used in modeling the distribution of counts,<br />

such as traffic counts and insect counts.<br />

Missing Values in Numeric Expressions<br />

• Most numeric expressions receive the system-missing value when any one of the values<br />

in the expression is missing.<br />

• Some arithmetic operations involving 0 can be evaluated even when the variables have<br />

missing values. These operations are:<br />

Expression Result<br />

0 * missing 0<br />

0 / missing 0<br />

MOD(0,missing) 0<br />

• The .n suffix can be used with the statistical functions SUM, MEAN, MIN, MAX, SD,<br />

VARIANCE, and CFVAR to specify the number of valid arguments you consider<br />

acceptable. The default of n is 2 for SD, VARIANCE, and CFVAR, and 1 for other<br />

statistical functions. For example,<br />

COMPUTE FACTOR = SUM.2(SCORE1 TO SCORE3).<br />

computes the variable FACTOR only if a case has valid information for at least two scores.<br />

FACTOR is assigned the system-missing value if a case has valid values for fewer than<br />

two scores.

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

Saved successfully!

Ooh no, something went wrong!