Package: cat2cat 0.4.7

cat2cat: 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) <doi:10.24425/cejeme.2020.134747>.

Authors:Maciej Nasinski [aut, cre]

cat2cat_0.4.7.tar.gz
cat2cat_0.4.7.zip(r-4.5)cat2cat_0.4.7.zip(r-4.4)cat2cat_0.4.7.zip(r-4.3)
cat2cat_0.4.7.tgz(r-4.4-any)cat2cat_0.4.7.tgz(r-4.3-any)
cat2cat_0.4.7.tar.gz(r-4.5-noble)cat2cat_0.4.7.tar.gz(r-4.4-noble)
cat2cat_0.4.7.tgz(r-4.4-emscripten)cat2cat_0.4.7.tgz(r-4.3-emscripten)
cat2cat.pdf |cat2cat.html
cat2cat/json (API)
NEWS

# Install 'cat2cat' in R:
install.packages('cat2cat', repos = c('https://polkas.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/polkas/cat2cat/issues

Pkgdown site:https://polkas.github.io

Datasets:
  • occup - Occupational dataset
  • occup_small - Occupational dataset - small one
  • trans - Trans dataset containing mappings (transitions) between old (2008) and new (2010) occupational codes. This table could be used to map encodings in both directions.
  • verticals - Verticals dataset
  • verticals2 - Verticals2 dataset

On CRAN:

categoriesencodingencodingsfactorlongitudinalmappingmappingspaneltransitions

4.30 score 4 stars 2 scripts 305 downloads 11 exports 1 dependencies

Last updated 1 years agofrom:6c4eb9f610. Checks:7 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKJan 16 2025
R-4.5-winOKJan 16 2025
R-4.5-linuxOKJan 16 2025
R-4.4-winOKJan 16 2025
R-4.4-macOKJan 16 2025
R-4.3-winOKJan 16 2025
R-4.3-macOKJan 16 2025

Exports:cat_apply_freqcat2catcat2cat_aggcat2cat_ml_runcross_c2cdummy_c2cget_freqsget_mappingsplot_c2cprune_c2csummary_c2c

Dependencies:MASS

Get Started

Rendered fromcat2cat.Rmdusingknitr::rmarkdownon Jan 16 2025.

Last update: 2023-10-22
Started: 2022-03-10