Items

Struct

Psychometrics.ItemType
Item <: AbstractItem

Description

An immutable containing information about an item (a question in a test), e.g. id::String the item identifier, and the field parameters::AbstractParameter which accepts a mutable item parameter object

Fields

  • idx::Int64: An integer that identifies the item in this session.
  • id::String: A string that identifies the examinee.
  • content::Vector{String}: A string vector containing the content features of an item.
  • parameters::AbstractParameters: A generic item parameters object.

Factories

Item(idx::Int64, id::String, content::Vector{String}, parameters::AbstractParameters) = new(idx, id, content, parameters)
Item(idx::Int64, id::String, parameters::AbstractParameters) = new(idx, id, String[], parameters)
Item(idx::Int64, parameters::AbstractParameters) = new(idx, string(idx), String[], parameters)

Creates a new generic item with custom index, id, (content features) and item parameters.

Random initilizers

Item(idx::Int64, id::String) = new(idx, id, String[], Parameters1PL())
Item(idx::Int64, id::String, content::String) = new(idx, id, content, Parameters1PL())

Randomly generates a new generic calibrated item with custom index, id, content features and default 1PL item parameters (Look at (Parameters1PL)[#Psychometrics.Parameters1PL] for the defaults).

source

Methods for a Single Item

Psychometrics.get_item_by_idMethod
get_item_by_id(item_id::String, items::Vector{<:AbstractItem})

Description

It returns the item with index item_id from a vector of <:AbstractItem.

source
Missing docstring.

Missing docstring for get_item_by_id(item_id::String, items::Vector{<:AbstractItem}). Check Documenter's build log for details.

Missing docstring.

Missing docstring for chain_append!(item::AbstractItem). Check Documenter's build log for details.

Methods for a Vector of Items