Last chance! 50% off unlimited learning
Sale ends in
Two functions: Znnself.ct
and Znnself
.
Both functions are objects of class "cellhtest"
but with different arguments (see the parameter list below).
Each one performs hypothesis tests of equality of the expected values of the self entries (i.e., first column)
in a species correspondence contingency table (SCCT) or the expected values of the diagonal entries
Each test is based on the normal approximation of the self entries (i.e., first column) in a
species correspondence contingency table (SCCT) or the diagonal entries
Each function yields a vector
of length
The null hypothesis is that all
The Znnself
functions (i.e., Znnself.ct
and Znnself
) are different from the Znnref
functions
(i.e., Znnref.ct
and Znnref
) and from Zself.ref
functions (i.e., Zself.ref.ct
and Zself.ref
) and also from
Znnself.sum
functions (i.e., Znnself.sum.ct
and Znnself.sum
).
Znnself
functions are testing the self reflexivity at a class-specific level (i.e., for each class) using the
first column in the SCCT, while Zself.ref
functions are for testing the self reflexivity for the entire data set
using entry Znnref
functions are for testing the self reflexivity and mixed non-reflexivity
using the diagonal entries in the RCT, and
Znnself.sum
functions are testing the cumulative species correspondence using the sum of the self column (i.e.,
the first column) in the SCCT.
Znnself.ct(
ct,
VarNii,
alternative = c("two.sided", "less", "greater"),
conf.level = 0.95
)Znnself(
dat,
lab,
alternative = c("two.sided", "less", "greater"),
conf.level = 0.95,
...
)
A list
with the elements
The vector
(of length k) of
Name of the test statistics
The vector
of
Lower and Upper Confidence Levels, it is NULL
here since we provide confidence intervals
as a
The
Level of the confidence intervals (i.e., conf.level) for the self entries in the SCCT or diagonal entries in the NNCT.
The vector
of estimates of the parameters, i.e., observed values of self entries
in the SCCT or diagonal entries in the NNCT.
Names of the estimates, both are same in this function.
The vector
of null values of the parameters, i.e., expected values of self entries
in the SCCT or diagonal entries in the NNCT under RL or CSR.
Name of the null values
Type of the alternative hypothesis in the test, one of "two.sided"
, "less"
, "greater"
Description of the hypothesis test
Name of the contingency table, ct
, returned by Znnself.ct
only
Name of the data set, dat
, returned by Znnself
only
The NNCT or SCCT, used in Znnself.ct
only
The variance vector of differences of self entries in the SCCT or diagonal entries in the NNCT,
used in Znnself.ct
only
Type of the alternative hypothesis in the test, one of "two.sided"
, "less"
or "greater"
.
Level of the upper and lower confidence limits, default is 0.95
,
for the self entries in the SCCT or diagonal entries in the NNCT
The data set in one or higher dimensions, each row corresponds to a data point,
used in Znnself
only
The vector
of class labels (numerical or categorical), used in Znnself
only
are for further arguments, such as method
and p
, passed to the dist
function.
used in Znnself
only
Elvan Ceyhan
Zself.ref.ct
, Zself.ref
, Znnref.ct
,
Znnref
, Xsq.spec.cor
and Xsq.spec.cor.ct
n<-20
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)
W<-Wmat(ipd)
Qv<-Qvec(W)$q
Rv<-Rval(W)
VarN.diag<-varNii.ct(ct,Qv,Rv)
Znnself(Y,cls)
Znnself(Y,cls,alt="g")
Znnself.ct(ct,VarN.diag)
Znnself.ct(ct,VarN.diag,alt="g")
Znnself(Y,cls,method="max")
ct<-scct(ipd,cls)
Znnself.ct(ct,VarN.diag)
#cls as a factor
na<-floor(n/2); nb<-n-na
fcls<-rep(c("a","b"),c(na,nb))
ct<-nnct(ipd,fcls)
Znnself(Y,fcls)
Znnself.ct(ct,VarN.diag)
#############
n<-40
Y<-matrix(runif(3*n),ncol=3)
ipd<-ipd.mat(Y)
cls<-sample(1:4,n,replace = TRUE) #or try cls<-rep(1:2,c(10,10))
ct<-nnct(ipd,cls)
W<-Wmat(ipd)
Qv<-Qvec(W)$q
Rv<-Rval(W)
VarN.diag<-varNii.ct(ct,Qv,Rv)
Znnself(Y,cls,alt="l")
Znnself.ct(ct,VarN.diag)
Znnself.ct(ct,VarN.diag,alt="l")
Run the code above in your browser using DataLab