concordance.test {nopaco}R Documentation

Perform a nonparametric concordance test.

Description

concordance.test performs a test for a random concordance (if a single matrix is given) or tests for equal concordance between two matrices.

Usage

concordance.test(x, y = NULL, alternative = NULL, alpha = 0.05, ...)

Arguments

x

a numeric matrix, subjects in the rows, repeated measurements in the columns

y

(optional) a numeric matrix of equal size as argument x

alternative

"less", "greater" or "two.sided". Only used when y is given.

alpha

significance level (default = 0.05)

...

see details

Details

Unbalanced data due to randomly missing data or an unequal number of repeated measurements per subject is allowed. In that case, missing or unknown values must be set to NA.

Value

An object of ConcordanceTest-class

References

P.Rothery (1979) Biometrika 66(3):629-639

See Also

Other concordance functions: coef(), getPsi(), rfromPsi()

Examples

require(MASS) ##to use the 'mvrnorm' function

#Generate a matrix without concordance
# for three observers in two samples
matRandom <- matrix(rnorm(3*20),20,3)
concordance.test(matRandom) 

#Generate a corresponding matrix with strong concordance
sigma<-matrix(0.8,3,3)
diag(sigma)<-1
matConcordant <- mvrnorm(20,mu=rep(0,3),Sigma=sigma)
concordance.test(matConcordant)

#Test concordances between the two matrices
aTest <- concordance.test(matConcordant, matRandom)

getPsi(aTest)
coef(aTest)


[Package nopaco version 1.0.7 Index]