cat2cat: Unify a Categorical Variable in a Panel Dataset
There are offered automatic methods to map a categorical variable according to a specific encoding across different time points.
The main rule is to replicate the observation if it could be assign to a few categories.
Then using simple frequencies or statistical methods to approximate probabilities of being assign to each of them.
This algorithm was invented and implemented in the paper by (Nasinski, Majchrowska and Broniatowska (2020) <doi:10.24425/cejeme.2020.134747>).
||R (≥ 3.6)
||caret, randomForest, knitr, rmarkdown, pacman, testthat, magrittr, dplyr
||Maciej Nasinski [aut, cre]
||Maciej Nasinski <nasinski.maciej at gmail.com>
||GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
Please use the canonical form
to link to this page.