Category Variable Encodings
Overview
Simple, fast, and automatic encodings for category data using a data.table backend. Most of the methods are an implementation of "Sufficient Representation for Categorical Variables" by Johannemann, Hadad, Athey, Wager (2019) arXiv:1908.09874, particularly their mean, sparse principal component analysis, low rank representation, and multinomial logit encodings.
Install
Health
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Juraj Szitas <szitas.juraj13@gmail.com>’ The Description field contains Hadad, Athey, Wager (2019) <arXiv:1908.09874>, particularly their mean, Please refer to arXiv e-prints via their arXiv DOI <doi:10.48550/arXiv.YYMM.NNNNN>.
- NOTE11 OK, 2 NOTENow
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 12
- Examples that run
- 100%12 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 293
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
Forks over time
Issues over time
6 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/jszitas/categoryencodings on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing categoryEncodings adds 9 packages (4 with compiled code, 16 MB of source tarballs). Heaviest: data.table 5.7 MB, rsvd 3.3 MB, glmnet 2.7 MB.
Code & Tests
People & History
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 1.4.3Latest2020-03-02 · current release
- RR 3.6.0 released · 2019-04-26
Package metadata
- First published
- 2020-03-02
- Total releases
- 1 / 6 yrs
- License
- GPL-3 OSI
- Download size
- 10 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("categoryEncodings")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.