Description Usage Arguments Value Author(s) See Also Examples
View source: R/ikcirt.data2Y.R
Converts raw rank data to the dichotomous response matrix, Y. Probably no need for user to call; called by kcirt.model
and kcirt.sim
.
1 | ikcirt.data2Y(mxData, mxDelta)
|
mxData |
Ranked Data. A matrix of positive integers (rankings). |
mxDelta |
System Delta matrix, elements in |
Response matrix with elements in {NA,0,1}
.
Dave Zes, Korn/Ferry International
For the inverse of this function, see ikcirt.Y2data
.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.