Learn R Programming

nnspat (version 0.1.2)

EV.tctI: 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:jkss-posthoc-2017;textualnnspat) and the references therein.

Usage

EV.tctI(ct)

Value

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

Arguments

ct

A nearest neighbor contingency table

Author

Elvan Ceyhan

References

See Also

EV.tct, tct and EV.nnct

Examples

Run this code
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)

Run the code above in your browser using DataLab