rcor.test {ltm} | R Documentation |
Computes and tests the pairwise associations between items using a correlation coefficient
rcor.test(mat, ...)
mat |
a numeric matrix or numeric data.frame containing the manifest variables. |
... |
extra arguments passed to cor() and cor.test() . |
An object of class rcor.test
with components,
cor.mat |
the correlation matrix. |
p.values |
a three column numeric matrix containing the p-values for all the combinations of items. |
The print method for class rcor.test
returns a square matrix in which the upper diagonal part contains
the estimates of the correlation coefficients, and the lower diagonal part contains the corresponding p-values.
rcor.test()
is more appropriate for informal testing of polytomous items.
Dimitris Rizopoulos dimitris.rizopoulos@med.kuleuven.be
## pairwise associations for Environment data: rcor.test(data.matrix(Environment), method = "kendall") ## pairwise associations for independent normal random variates: mat <- matrix(rnorm(1000), 100, 10) rcor.test(mat) rcor.test(mat, method = "kendall") rcor.test(mat, method = "spearman")