PolychoricCorrelationMatrix {exametrika} | R Documentation |
Polychoric Correlation Matrix
Description
Polychoric Correlation Matrix
Usage
PolychoricCorrelationMatrix(U, na = NULL, Z = NULL, w = NULL)
## Default S3 method:
PolychoricCorrelationMatrix(U, na = NULL, Z = NULL, w = NULL)
## S3 method for class 'ordinal'
PolychoricCorrelationMatrix(U, na = NULL, Z = NULL, w = NULL)
Arguments
U |
Either an object of class "exametrika" or raw data. When raw data is given,
it is converted to the exametrika class with the |
na |
Values to be treated as missing values. |
Z |
Missing indicator matrix of type matrix or data.frame. Values of 1 indicate observed responses, while 0 indicates missing data. |
w |
Item weight vector specifying the relative importance of each item. |
Value
A matrix of polychoric correlations with exametrika class. Each element (i,j) represents the polychoric correlation between items i and j. The matrix is symmetric with ones on the diagonal.
Examples
# example code
PolychoricCorrelationMatrix(J5S1000)
[Package exametrika version 1.5.1 Index]