EV.tctI: Expected Values of the Type I cell-specific tests

View source: R/NNCTFunctions.R

EV.tctIR 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 (\insertCiteceyhan:jkss-posthoc-2017;textualnnspat) 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

\insertAllCited

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)


nnspat documentation built on Aug. 30, 2022, 9:06 a.m.