Learn R Programming

exametrika (version 1.6.0)

passage: Passage Rate of Student

Description

The Passage Rate for each student is calculated as their Number-Right Score (NRS) divided by the number of items presented to them. This function is applicable only to binary response data.

The passage rate is calculated as: $$P_i = \frac{\sum_{j=1}^J z_{ij}u_{ij}w_j}{\sum_{j=1}^J z_{ij}}$$ where:

  • \(z_{ij}\) is the missing response indicator (0/1)

  • \(u_{ij}\) is the response (0/1)

  • \(w_j\) is the item weight

Usage

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

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

# S3 method for binary passage(U, na = NULL, Z = NULL, w = NULL)

Value

A numeric vector containing the passage rate for each student. Values range from 0 to 1 (or maximum weight) where:

  • 1: Perfect score on all attempted items

  • 0: No correct answers

  • NA: No items attempted

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
# using sample dataset
passage(J15S500)

Run the code above in your browser using DataLab