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

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/NNCTFunctions.r

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

1
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

1
2
3
4
5
6
7
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 May 10, 2021, 9:06 a.m.