Description Usage Arguments Value Examples
View source: R/computeQuestion.R
Find the question ID for the next question to be administered in CAT
1 | computeQuestion(CATdesign, askedQuestions, responses)
|
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 |
nextQuestion: the ID of the next question to administer or "done", indicating the termination of CAT
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.