View source: R/digram.object.R
code.testlet | R Documentation |
Code items as a testlet/local dependant
code.testlet(do, testlet = NULL, names = NULL, labels = NULL, append = F)
do |
A digram.object |
testlet |
String. The items that are part of a testlet/are local dependant. Give as a list of comma separated variable numbers, variable labels or variable names. If there is spaces in the variable names, they can be delimited by ". |
names |
A vector of strings naming the testlets. If names are not given, they are composed of the testlet item names. |
append |
Logical. Append new testlet variables to the existing ones. |
Local dependence is often caused by items sharing a common stimulus. This is called testlets or item bundles (Wang & Wilson 2006. Coding for Local Dependence is the same as identifying a testlet or an item bundle.
Returns a digram.object with the revised testlet-data.frame.
Wang, W.-C., & Wilson, M. (2005). The Rasch Testlet Model. Applied Psychological Measurement, 29(2), 126–149. https://doi.org/10.1177/0146621604271053
data(DHP)
do<-code.testlet(do=DHP,testlet=c("ab,dhp36 dhp37,5 6"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.