Learn R Programming

IRTpp (version 0.2.6.1)

individual.traits: Estimate the latent traits.

Description

Estimate the latent traits of the individuals in a test with some given item parameters.

Usage

individual.traits(model, itempars, method, dataset = NULL, probability_matrix = NULL)

Arguments

model
The model used to calibrate the parameters.
itempars
The item parameters for the model in matrix form.
method
The method for estimating the traits, may be "EAP" or "MAP".
dataset
The matrix with the responses from the individuals.
probability_matrix
The probability matrix in case it does not need to be recalculated.

Value

A list with the patterns and the estimated latent traits.

Examples

Run this code
## Simulation data for the model "3pl"
# data <- simulateTest(model = "3PL", items = 100, individuals = 1000)
## Estimation of the parameters
# est <- irtpp(data$test, model = "3PL")
## Parameter Matrix 
# z <- parameter.matrix(est$z)
#trait <- individual.traits(model = "3PL", itempars = z, dataset = data$test,
#                  method = "EAP", probability_matrix = est$prob_mat)

Run the code above in your browser using DataLab