Automated Multicollinearity Management
Overview
Provides a comprehensive and automated workflow for managing multicollinearity in data frames with numeric and/or categorical variables. The package integrates five robust methods into a single function: (1) target encoding of categorical variables based on response values (Micci-Barreca, 2001 (Micci-Barreca, D. 2001 doi:10.1145/507533.507538); (2) automated feature prioritization to preserve key predictors during filtering; (3 and 4) pairwise correlation and VIF filtering across all variable types (numeric–numeric, numeric–categorical, and categorical–categorical); (5) adaptive correlation and VIF thresholds. Together, these methods enable a reliable multicollinearity management in most use cases while maintaining model integrity. The package also supports parallel processing and progress tracking via the packages 'future' and 'progressr', and provides seamless integration with the 'tidymodels' ecosystem through a dedicated recipe step.
The preference_order dataframe returned by collinear() now shows the correct metric name instead of "custom" when a known f function is used.
The formula environment generated by model_formula() is now a minimal two-binding environment (poly, s) with baseenv() as parent, rather than the full caller frame. This prevents large objects (e.g. the df dataframe and intermediate variables) from being serialized when a fitted model is saved with saveRDS().
Improved example of the function collinear().
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-12
Show 3 earlier changesHide 3 earlier changes
- WARNING12 OK, 1 WARNING2026-05-11
- OK12 OK2026-04-25
- NOTE13 OK, 1 NOTE2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 63 (1 internal)
- Examples that run
- 98%56 run in a plain check · 1 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 10%
Downloads
Repository
- PRs merged (all time)
- 33%
- Median days to close, 50 most recently updated closed issues
- 38
- Median days to close, 50 most recently updated closed PRs
- 3
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
9 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/blasbenito/collinear on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-09-01 · The repository has a site deploy workflow
pkgdown site last built 2026-09-01
Dependencies
Code & Tests
Datasets
People & History
Maintainer since 1.0.1 (2023)
Pick two releases to compare their code metrics.
- 3.0.2Latest
- 3.0.12026-05-07 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 3.0.02025-12-08 · diff ↗ ·
removed 39 exports
add_white_noise, cor_categorical_vs_categorical, cor_cramer_v, cor_numeric_vs_categorical, cor_numeric_vs_numeric, encoded_predictor_name, f_auc_gam_binomial, f_auc_glm_binomial, f_auc_glm_binomial_poly2, f_auc_rf, f_auc_rpart, f_r2_gam_gaussian, f_r2_gam_poisson, f_r2_glm_gaussian, f_r2_glm_gaussian_poly2, f_r2_glm_poisson, f_r2_glm_poisson_poly2, f_r2_pearson, f_r2_rf, f_r2_rpart, f_r2_spearman, f_v, f_v_rf_categorical, identify_predictors, identify_predictors_categorical, identify_predictors_numeric, identify_predictors_type, identify_predictors_zero_variance, performance_score_auc, performance_score_r2 and 9 moreadded 36 exports
collinear_select, collinear_stats, cor_cramer, cor_stats, f_binomial_gam, f_binomial_glm, f_binomial_rf, f_categorical_rf, f_count_gam, f_count_glm, f_count_rf, f_numeric_gam, f_numeric_glm, f_numeric_rf, identify_categorical_variables, identify_logical_variables, identify_numeric_variables, identify_valid_variables, identify_zero_variance_variables, score_auc, score_cramer, score_r2, step_collinear, validate_arg_df, validate_arg_df_not_null, validate_arg_encoding_method, validate_arg_f, validate_arg_function_name, validate_arg_max_cor, validate_arg_max_vif and 6 more - RR 4.5.0 released · 2025-04-11
- 2.0.02024-11-08 · diff ↗ ·
removed 16 exports
auc_score, cramer_v, f_gam_auc_balanced, f_gam_auc_unbalanced, f_gam_deviance, f_logistic_auc_balanced, f_logistic_auc_unbalanced, f_rf_auc_balanced, f_rf_auc_unbalanced, f_rf_deviance, f_rf_rsquared, f_rsquared, identify_non_numeric_predictors, identify_numeric_predictors, identify_zero_variance_predictors, target_encoding_rnormadded 41 exports
cor_categorical_vs_categorical, cor_clusters, cor_cramer_v, cor_numeric_vs_categorical, cor_numeric_vs_numeric, encoded_predictor_name, f_auc_gam_binomial, f_auc_glm_binomial, f_auc_glm_binomial_poly2, f_auc_rf, f_auc_rpart, f_auto, f_auto_rules, f_functions, f_r2_gam_gaussian, f_r2_gam_poisson, f_r2_glm_gaussian, f_r2_glm_gaussian_poly2, f_r2_glm_poisson, f_r2_glm_poisson_poly2, f_r2_pearson, f_r2_rf, f_r2_rpart, f_r2_spearman, f_v, f_v_rf_categorical, identify_predictors, identify_predictors_categorical, identify_predictors_numeric, identify_predictors_type and 11 more - RR 4.4.0 released · 2024-04-24
- 1.1.12023-12-08 · diff ↗
- 1.1.02023-11-30 · diff ↗ ·
added 9 exports
auc_score, case_weights, f_gam_auc_balanced, f_gam_auc_unbalanced, f_logistic_auc_balanced, f_logistic_auc_unbalanced, f_rf_auc_balanced, f_rf_auc_unbalanced, f_rf_rsquared - 1.0.12023-10-24
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2023-10-24
- Total releases
- 7 / 3 yrs
- License
- MIT + file LICENSE OSI · relicensed from GPL (>= 3) in 1.1.0
- Minimum R
- ≥ 4.1.0
- Bundled data
- 347 KB / 5 files
- Download size
- 464 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("collinear")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.5281/zenodo.10039396.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.