cnvrtItemParam {conquestr} | R Documentation |
cnvrtItemParam
Description
takes an item in one model's parameterisation and returns it in another parameterisation.
Usage
cnvrtItemParam(item, from = "muraki", to = "conquest", D = 1)
Arguments
item |
an item design matrix that is of size response categories (m) by four:
|
from |
a string, either "muraki" or "conquest" (default) (see 10.1177/0146621697211001). Describing the parameterisation of item |
to |
a string, either "muraki" or "conquest" (default) (see 10.1177/0146621697211001). Describing the output parameterisation of the returned item parameter matrix Note that "muraki" assumes the scaling constant D = 1.7 (to give the normal ogive metric) |
D |
a number, giving the scaling constant. Default is 1 (logistic metric). Other common values are D = 1.7 (to give the normal ogive metric) |
Value
an m x 4 matrix of item parameters. The same dimensions as the input, item
Examples
myTheta <- 0
myDelta <- 1.5
a <- 1.5
m <- 3
itemParamX <- seq(0, m-1, 1)
itemParamD <- rep(myDelta, m)
itemParamT <- c(0, -0.5, 0.5)
itemParamA <- rep(a, m)
itemParam <- cbind(itemParamX, itemParamD, itemParamT, itemParamA)
colnames(itemParam)<- c("x", "d", "t", "a")
myItem <- cnvrtItemParam(itemParam, from = "conquest", to = "muraki")