computeQuestion: computeQuestion

Description Usage Arguments Value Examples

View source: R/computeQuestion.R

Description

Find the question ID for the next question to be administered in CAT

Usage

1
computeQuestion(CATdesign, askedQuestions, responses)

Arguments

CATdesign

mirtCAT design object, obtained using mirtCAT(), see example

askedQuestions

The ID's of the questions administered so far

responses

The responses to each questions administered so far

Value

nextQuestion: the ID of the next question to administer or "done", indicating the termination of CAT

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# Specify CATdesign object
data(CATdesign)
CATdesign <- mirtCAT(df, mod, criteria = 'KL', start_item = 'Trule',
                     design_elements = TRUE,
                     design = list(min_SEM = rep(0.4, 3),
                                   max_items = ncol(data_epsi1a),
                                   delta_thetas = rep(0.03, 3)))
# Questions #1 and #5 were previously administered
askedQuestions = c(1,5)
# The respondent's response to the previously administered questions (i.e., Questions #1 and #5) were Options 1 and 2
responses = c(1,2)
nextQuestion <- computeQuestion(CATdesign = CATdesign, askedQuestions = askedQuestions, responses = responses)
# The ID of the next question to administer
nextQuestion

qcsong/EDCAT documentation built on May 14, 2019, 12:54 a.m.