code.testlet: Code items as a testlet/local dependant

View source: R/digram.object.R

code.testletR Documentation

Code items as a testlet/local dependant

Description

Code items as a testlet/local dependant

Usage

code.testlet(do, testlet = NULL, names = NULL, labels = NULL, append = F)

Arguments

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.

Details

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.

Value

Returns a digram.object with the revised testlet-data.frame.

References

Wang, W.-C., & Wilson, M. (2005). The Rasch Testlet Model. Applied Psychological Measurement, 29(2), 126–149. https://doi.org/10.1177/0146621604271053

Examples

data(DHP)
do<-code.testlet(do=DHP,testlet=c("ab,dhp36 dhp37,5 6"))

jeppebundsgaard/RDigram documentation built on Oct. 29, 2023, 7:15 p.m.