estimateAbility.mle.bf: Calculate an IRT MLE ability estimate for the given sequence...

Description Usage Arguments Value Examples

Description

Calculate an IRT MLE ability estimate for the given sequence of scores and items.

Usage

1
estimateAbility.mle.bf(item_pars, scores, simulation)

Arguments

item_pars

a matrix of doubles, items by params. Must have columns for $PAR_* matching the $MODEL

scores

a vector of integers. A score for each item. Must be same length as nrow(item_pars).

simulation

an object defining the test that is being run.

Value

a list with properties theta and csem.

Examples

1
2
3
4
5
  simulation = readRDS(system.file("example/passage-adaptive-wpm.rds", package = "CATSimulator"))
  item_pars = as.matrix(simulation$itempool[1:5,c("PAR_1","PAR_2","PAR_3")])
  scores = generateScores(item_pars, -0.4)
  abilityEstimate = estimateAbility.mle.bf(item_pars, scores, simulation)
  abilityEstimate.irtoys = irtoys::mlebme(resp=scores, ip=list(est=item_pars))

yuehmeir2/CATSimulator documentation built on June 13, 2021, 7:02 p.m.