View source: R/02_TestItemFunctions.R
JointSampleSize | R Documentation |
The joint sample size is a matrix whose elements are the number of individuals who responded to each pair of items.
JointSampleSize(U, na = NULL, Z = NULL, w = NULL)
## Default S3 method:
JointSampleSize(U, na = NULL, Z = NULL, w = NULL)
## S3 method for class 'binary'
JointSampleSize(U, na = NULL, Z = NULL, w = NULL)
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. |
Returns a matrix of class c("exametrika", "matrix") where each element (i,j) represents the number of students who responded to both item i and item j. The diagonal elements represent the total number of responses for each item.
This function is implemented using a binary data compatibility wrapper and will raise an error if used with polytomous data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.