This function imputes for all missing responses using the response function imputation
(Sijtsma and van der Ark, 2003 <doi: 10.1207/s15327906mbr3804_4>).
Test data set (a data frame or a matrix) containing missing responses.
Missing values are coded as NA or other values (e.g., 8, 9).#'
Mvalue
Missing response indicators in the data (e.g. "NA", "8", "9", etc.). Mvalue="NA" by default.
max.score
The max possible response value in test data (the lowest response value should be 0).
By default max.score=1 (i.e.,binary test data). max.score = 2 if the response categories are (0, 1, 2), etc.
round.decimal
The number of digits or decimal places for the imputed value. The default value is 0.
Value
A data frame with all missing responses imputed with response function.
References
Sijtsma, K., & Van der Ark, L. A. (2003).
"Investigation and treatment of missing item scores in test and questionnaire data."
Multivariate Behavioral Research, 38(4), 505-528. DOI: 10.1207/s15327906mbr3804_4.