EV.tctI {nnspat}R Documentation

Expected Values of the Type I cell-specific tests

Description

Returns a matrix of same dimension as, ct, whose entries are the expected values of the Type I cell-specific test statistics, T^I_{ij}. The row and column names are inherited from ct. These expected values are valid under RL or CSR.

See also (Ceyhan (2017)) and the references therein.

Usage

EV.tctI(ct)

Arguments

ct

A nearest neighbor contingency table

Value

A matrix of the expected values of Type I cell-specific tests.

Author(s)

Elvan Ceyhan

References

Ceyhan E (2017). “Cell-Specific and Post-hoc Spatial Clustering Tests Based on Nearest Neighbor Contingency Tables.” Journal of the Korean Statistical Society, 46(2), 219-245.

See Also

EV.tct, tct and EV.nnct

Examples

n<-20  #or try sample(1:20,1)
Y<-matrix(runif(3*n),ncol=3)
ipd<-ipd.mat(Y)
cls<-sample(1:2,n,replace = TRUE)  #or try cls<-rep(1:2,c(10,10))
ct<-nnct(ipd,cls)

EV.tctI(ct)


[Package nnspat version 0.1.2 Index]