pottwhitt.stat {DCluster} | R Documentation |
Compute Pottwhoff-Whittinghill's statistic.
pottwhitt.stat(data)
data |
A dataframe containing the data, as specified in the DClustermanpage. |
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. |
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.
DCluster
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)