PNTEST procedure
Calculates one- and two-sample Poisson tests (D.A. Murray).
Options
Parameters
Description
PNTEST calculates one- and two-sample Poisson tests. The value for the mean under the null hypothesis for a one-sample test is specified by the option NULL. You can supply the sample mean m1 as a scalar using the MU1 parameter. The sample size is then specified by the S1 option (with default 1). Alternatively, you can set MU1 to a variate containing the counts in the individual samples (and the sample size is then the number of non-missing values that it contains). With a two-sample test, parameters MU1 and MU2 similarly provide the means (m1 and m2) for samples 1 and 2 respectively, and the sample sizes can be specified using the S1 and S2 options.
For both one- and two-sample cases, the test is assumed to be two-sided unless otherwise requested by the METHOD option. Setting METHOD=greaterthan will give a one-sided test of the null hypothesis that m1 > m2 or NULL (for a two-sample or one-sample test, respectively). Similarly, METHOD=lessthan will produce a test of the null hypothesis m1 < m2 or NULL. A small "p-value" indicates that the data are inconsistent with the null hypothesis. The TEST option specifies the form of test used for the one-sample test; either an exact test or a Normal approximation can be selected.
Printed output is controlled by the PRINT option with settings:
The default is to print everything.
By default a 95% confidence interval is calculated, but this can be changed by setting the CIPROBABILITY option to the required value (between 0 and 1).
Results can be saved using the NORMAL, PROBABILITY, LOWER and UPPER parameters. NORMAL saves the Normal approximation for the one- and two-sample tests, PROBABILITY saves the probability level. LOWER and UPPER save the lower and upper limits, respectively, of the confidence interval.
Options: PRINT, METHOD, TEST, S1, S2, CIPROBABILITY, NULL.
Parameters: MU1, MU2, NORMAL, PROBABILITY, LOWER, UPPER.
Method
A standard Normal approximation is used for both the one- and two-sample tests. The exact test and confidence intervals are based on the methodology described in Chapter 4 (page 141) of Arimitage & Berry (1994).
Reference
Arimitage, P. & Berry, G. (1994). Statistical Methods in Medical Research. Blackwell Science, Oxford.