# ikcirt.data2Y: Convert Rank Data to Y In kcirt: k-Cube Thurstonian IRT Models

## Description

Converts raw rank data to the dichotomous response matrix, Y. Probably no need for user to call; called by `kcirt.model` and `kcirt.sim`.

## Usage

 `1` ```ikcirt.data2Y(mxData, mxDelta) ```

## Arguments

 `mxData` Ranked Data. A matrix of positive integers (rankings). `mxDelta` System Delta matrix, elements in `{-1,0,1}`.

## Value

Response matrix with elements in `{NA,0,1}`.

## Author(s)

Dave Zes, Korn/Ferry International

## See Also

For the inverse of this function, see `ikcirt.Y2data`.

## Examples

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21``` ```##### here's an itty-bitty example constructMap.ls <- list( c(1,1,2,2), c(2,2,3,3), c(1,1,3,3) ) qTypes <- rep("M", length(constructMap.ls)) model <- kcirt.model(constructMap.ls=constructMap.ls, qTypes=qTypes, mxLambda=NULL) #### fake data, two cases (cases run column-wise) mxData <- t( rbind( c( c(1, NA, NA, 4), c(4, NA, NA, 1), c(NA, 4, NA, 1) ), c( c(1, 4, NA, NA), c(NA, NA, 1, 4), c(NA, 4, 1, NA) ) ) ) ikcirt.data2Y(mxData, mxDelta=model\$mxDelta) ```

kcirt documentation built on May 29, 2017, 5:37 p.m.