pottwhitt.stat {DCluster}R Documentation

Compute Potthoff-Whittinghill's statistic

Description

Compute Pottwhoff-Whittinghill's statistic.

Usage

pottwhitt.stat(data)

Arguments

data A dataframe containing the data, as specified in the DClustermanpage.

Value

A list with the following elements:

T The value of the statistic.
asintmean Mean of the asymptotical Normal distribution.
asintvar Variance of the asymptotical Normal distribution.
pvalue Significance of the statistic.

References

Potthoff, R. F. and Whittinghill, M.(1966). Testing for Homogeneity: I. The Binomial and Multinomial Distributions. Biometrika 53, 167-182.

Potthoff, R. F. and Whittinghill, M.(1966). Testing for Homogeneity: The Poisson Distribution. Biometrika 53, 183-190.

See Also

DCluster

Examples

library(spdep)

data(nc.sids)

sids<-data.frame(Observed=nc.sids$SID74)
sids<-cbind(sids, Expected=nc.sids$BIR74*sum(nc.sids$SID74)/sum(nc.sids$BIR74))
sids<-cbind(sids, x=nc.sids$x, y=nc.sids$y)

pottwhitt.stat(sids)

[Package Contents]