response: Create a Response object from a vector of responses

View source: R/response-class-methods.R

responseR Documentation

Create a Response object from a vector of responses

Description

Create a Response object from a vector of responses

Usage

response(
  score = NULL,
  examinee_id = NULL,
  item_id = NULL,
  raw_response = NULL,
  testlet_id = NULL,
  order = NULL,
  response_time = NULL,
  misc = NULL
)

Arguments

score

A numeric vector holding the scores given to items.

examinee_id

Examinee/Subject/Student ID. A character string to identify an examinee.

item_id

A character vector holding the item IDs.

raw_response

A vector of strings holding the raw responses to items.

testlet_id

A character vector holding the testlet IDs that given item belongs. It can be NULL if none of the items belongs to any testlet. Items that do not belong to any testlet should be represented by NA.

order

An integer vector representing the administration order of an item.

response_time

A numeric vector representing the response times. By default, numbers are assumed to represent seconds.

misc

A list that will hold miscellaneous information about the responses. For example, codemisc = list(item_role = c("O", "O", "O","F")) will hold whether administered item is a field test or an operational test item.

Author(s)

Emre Gonulates


irt documentation built on Nov. 10, 2022, 5:50 p.m.