Handling an Inconsistently Coded Categorical Variable in a Longitudinal Dataset

Unifying an inconsistently coded categorical variable between two different time points in accordance with a mapping table. The main rule is to replicate the observation if it could be assigned to a few categories. Then using frequencies or statistical methods to approximate the probabilities of being assigned to each of them. This procedure was invented and implemented in the paper by 'Nasinski', 'Majchrowska', and 'Broniatowska' (2020) .


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("cat2cat")

0.6.1 by Maciej Nasinski, 5 months ago


https://github.com/Polkas/cat2cat, https://polkas.github.io/cat2cat/


Report a bug at https://github.com/Polkas/cat2cat/issues


Browse source code at https://github.com/cran/cat2cat


Authors: Maciej Nasinski [aut, cre] (ORCID:


Documentation:   PDF Manual  


GPL (>= 2) | file LICENSE license


Imports MASS

Suggests caret, dplyr, e1071, fixest, forcats, knitr, magrittr, randomForest, rmarkdown, spelling, testthat, tidyr


See at CRAN