Learn R Programming

lordif (version 0.3-3)

separate: splits item response vectors of DIF items by group

Description

Splits item response vectors of DIF items into separate group-specific vectors.

Usage

separate(resp, flag, gr)

Value

Returns a data frame with item response vectors for non-DIF items followed by separated item response vectors for DIF items

Arguments

resp

a data frame (or matrix) of item responses

flag

a vector of DIF flags

gr

a vector of group identifiers

Author

Seung W. Choi <choi.phd@gmail.com>

Details

To obtain group specific item calibrations, response vectors of DIF items are split into multiple vectors by group and treated as separate items.

Examples

Run this code
if (FALSE) separate(resp,flag,gr)

Run the code above in your browser using DataLab