Responses

Psychometrics.get_examinees_by_item_idMethod
get_examinees_by_item_id(
    item_id::String,
    responses::Vector{<:AbstractResponse},
    examinees::Vector{<:AbstractExaminee},
)

Description

It returns the examinees who answered to the item with id item_id.

source
Psychometrics.get_items_by_examinee_idMethod
get_items_by_examinee_id(
    examinee_id::String,
    responses::Vector{<:AbstractResponse},
    items::Vector{<:AbstractItem},
)

Description

It returns the items answered by the examinee with id examinee_id.

source
Psychometrics.add_response!Method
add_response!(response::AbstractResponse, responses::Vector{<:AbstractResponse})

Description

Push the response in the response vector responses.

source
Psychometrics.get_responses_by_item_idxMethod
get_responses_by_item_idx(item_idx::Int64, responses::Vector{<:AbstractResponse}; sorted = true)

Description

It returns the vector of responses to item with idx equal to item_idx. The vector of responses is sorted by examinee_idx if sorted = true.

source
Psychometrics.answerMethod
answer(examinee::AbstractExaminee, item::AbstractItem)

Description

Randomly generate a response by examinee to a dichotomous (binary) item.

source
Psychometrics.answerMethod
answer(examinee::AbstractExaminee, items::Vector{<:AbstractItem})

Description

Randomly generate a response by examinee to dichotomous (binary) items.

source
Psychometrics.answerMethod
answer(examinee_id::String, item_id::String, examinees::Vector{<:AbstractExaminee}, items::Vector{<:AbstractItem})

Description

Randomly generate a response by Examinee with index examinee_id to a dichotomous (binary) item with index item_id.

source
Psychometrics.answerMethod
answer(examinees::Vector{<:AbstractExaminee}, items::Vector{<:AbstractItem})

Description

Randomly generate responses by all the examinees in examinees to items in items.

source
Psychometrics.get_response_matrixMethod
get_response_matrix(responses::Vector{Response}, I::Int64, N::Int64)

Description

Transform vector of Responses in a $I imes N$ response matrix. A non given answer has value 0.0.

source
Psychometrics.get_responsesMethod
get_responses(response_matrix::Matrix{Float64}, design_matrix::Matrix{Float64}, items::Vector{<:AbstractItem}, examinees::Vector{<:AbstractExaminee})

Transforms a $I imes N$ response matrix in a vector of Responses given a valid design_matrix, a vector of Items and a vector of Examinees.

source