Learn R Programming

TestDesign (version 1.0.2)

calcEscore: Calculate expected scores

Description

An S4 generic and its methods to calculate expected scores given a vector of thetas for different item classes.

Usage

calcEscore(object, theta)

# S4 method for item_1PL,numeric calcEscore(object, theta)

# S4 method for item_2PL,numeric calcEscore(object, theta)

# S4 method for item_3PL,numeric calcEscore(object, theta)

# S4 method for item_PC,numeric calcEscore(object, theta)

# S4 method for item_GPC,numeric calcEscore(object, theta)

# S4 method for item_GR,numeric calcEscore(object, theta)

# S4 method for item_pool,numeric calcEscore(object, theta)

# S4 method for pool_cluster,numeric calcEscore(object, theta)

Arguments

object

An instance of an item class.

theta

A vector of theta values.

Value

A vector of expected scores of length nq (the number of values on theta grid).

References

rasch_probabilistic_1960TestDesign

lord_theory_1952TestDesign

birnbaum_efficient_1957TestDesign

birnbaum_estimation_1958TestDesign

birnbaum_further_1958TestDesign

birnbaum_latent_1968TestDesign

masters_rasch_1982TestDesign

andrich_rating_1978TestDesign

muraki_generalized_1992TestDesign

samejima_estimation_1969TestDesign

Examples

Run this code
# NOT RUN {
item_1     <- new("item_1PL", difficulty = 0.5)
ICC_item_1 <- calcEscore(item_1, seq(-3, 3, 1))
item_2     <- new("item_2PL", slope = 1.0, difficulty = 0.5)
ICC_item_2 <- calcEscore(item_2, seq(-3, 3, 1))
item_3     <- new("item_3PL", slope = 1.0, difficulty = 0.5, guessing = 0.2)
ICC_item_3 <- calcEscore(item_3, seq(-3, 3, 1))
item_4     <- new("item_PC", threshold = c(-1, 0, 1), ncat = 4)
ICC_item_4 <- calcEscore(item_4, seq(-3, 3, 1))
item_5     <- new("item_GPC", slope = 1.2, threshold = c(-0.8, -1.0, 0.5), ncat = 4)
ICC_item_5 <- calcEscore(item_5, seq(-3, 3, 1))
item_6     <- new("item_GR", slope = 0.9, category = c(-1, 0, 1), ncat = 4)
ICC_item_6 <- calcEscore(item_6, seq(-3, 3, 1))
TCC_itempool <- calcEscore(itempool_science, seq(-3, 3, 1))
# }

Run the code above in your browser using DataLab