| poly2dich {mirt} | R Documentation |
Tranforms a matrix of items into a new matrix where the select polytomous items have been converted into comperable dichotomous items with the same information.
poly2dich(data, which.items = 1:ncol(data))
data |
an object of class |
which.items |
a vector indicating which items should be transformed into the dichotomous form. Default uses all input items |
Returns an integer matrix
Phil Chalmers rphilip.chalmers@gmail.com
## Not run: data(Science) head(Science) newScience <- poly2dich(Science) head(newScience) newScience2 <- poly2dich(Science, which.items = 2) head(newScience2) ## End(Not run)