This function is used to recode character missings in datasets that were prepared
eatPrep package to 0 or
NA. Additionally, all variables are converted to
numeric. It should be called to recode the missing values prior to passing datasets on to
A data frame containing character missings (e.g.,
A named list with definitions how to recode the different types of missings in the dataset. The names correspond to the character missings and the list elements correspond to their recode values. If
A character vector containing the column names of the data frame for the which character missings should be recoded.
One main idea of the
eatPrep package is that different types of
missing values should remain distinguishable during data preparation, thus allowing the user to flexibly recode them to different values during the IRT scaling process.
collapseMissings facilitates recoding of the different
types of character missings before IRT analysis or when exporting the data to other software packages (e.g., SPSS).
eatPrep package currently supports six different types of missings, namely
mvi (text volume insufficient): used in writing tasks if a person wrote to little to evaluate whether they met a specific criterion.
mnr (missing not reached): used whenever a person did not reach the respective task in his or her test booklet. All consecutive missing values clustered at the end of a test session can be coded
mnr, e.g., by the function
mnrCoding from package
mci (missing coding impossible): used whenever a response cannot be coded due to technical problems (e.g., problems in digitalizing the booklets)
mbd (missing by design): used whenever an item was not administered to a specific person.
mir (missing invalid response): used whenever a person attempted to answer an item but this answer cannot be classified in the existing coding scheme. Can also be used for multiple choice-items when the respondent selected more than one option.
mbi (missing by intention): used whenever a person was expected to answer an item but did not provide a response.
The default recode values for these missing types are:
text volume insufficient = 0, missing not reached = 0, missing coding impossible =
NA, missing by design =
NA, missing invalid response = 0, missing by intention = 0
A data frame with all missing values coded as 0 or
NA according to the specification in the argument
Karoline Sachse, Martin Hecht
OECD (2005). PISA 2003 Technical Report. OECD Publishing.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.