Learn R Programming

TestDesign (version 1.0.2)

calcLocation: Calculate item location

Description

An S4 generic and its methods to calculate item location.

Usage

calcLocation(object)

# S4 method for item_1PL calcLocation(object)

# S4 method for item_2PL calcLocation(object)

# S4 method for item_3PL calcLocation(object)

# S4 method for item_PC calcLocation(object)

# S4 method for item_GPC calcLocation(object)

# S4 method for item_GR calcLocation(object)

# S4 method for item_pool calcLocation(object)

# S4 method for pool_cluster calcLocation(object)

Arguments

object

An instance of an item class.

Value

Item location values.

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)
theta_item_1 <- calcLocation(item_1)
item_2       <- new("item_2PL", slope = 1.0, difficulty = 0.5)
theta_item_2 <- calcLocation(item_2)
item_3       <- new("item_3PL", slope = 1.0, difficulty = 0.5, guessing = 0.2)
theta_item_3 <- calcLocation(item_3)
item_4       <- new("item_PC", threshold = c(-1, 0, 1), ncat = 4)
theta_item_4 <- calcLocation(item_4)
item_5       <- new("item_GPC", slope = 1.2, threshold = c(-0.8, -1.0, 0.5), ncat = 4)
theta_item_5 <- calcLocation(item_5)
item_6       <- new("item_GR", slope = 0.9, category = c(-1, 0, 1), ncat = 4)
theta_item_6 <- calcLocation(item_6)
theta_itempool <- calcLocation(itempool_science)
# }

Run the code above in your browser using DataLab