Learn R Programming

exametrika (version 1.6.0)

PolychoricCorrelationMatrix: Polychoric Correlation Matrix

Description

Polychoric Correlation Matrix

Usage

PolychoricCorrelationMatrix(U, na = NULL, Z = NULL, w = NULL)

# S3 method for default PolychoricCorrelationMatrix(U, na = NULL, Z = NULL, w = NULL)

# S3 method for ordinal PolychoricCorrelationMatrix(U, na = NULL, Z = NULL, w = NULL)

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.

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 dataFormat function.

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.

Examples

Run this code
# \donttest{
# example code
PolychoricCorrelationMatrix(J5S1000)
# }

Run the code above in your browser using DataLab