Skip to content

collinear

3.0.2Package record

Automated Multicollinearity Management

0packages depend
5.7Kdownloads / year
96.1%test coverage
13/13flavors OK

Overview

About

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.

Changes in 3.0.2

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

CRAN checks
13OK
Slowest check: 4.0 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 3.0.2
READMEYes · 712 wordsVignettes· In the repository, left out of the releaseNEWSYes · 100% structured · mentions 3.0.2Citation fileYes · software entry onlyWebsiteYes · pkgdown

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

5.7K
CRAN downloads in the past year
Rank #5,588 · ~16/day · ~473/mo
Daily download trend is not available in this view yet.
60330 days
1.5K90 days
5.7K1 year
Compare downloads with other packages →
Also on255 r2u24 autocran

Repository

21Stars
3Forks
0Open issues
0Open PRs
5Releases
276Commits
4Commit identities
machine-learningmulticollinearityr-packagestatistics
276 commits · Last activity 2026-10-14 · +10.5% stars, 30d
Responsiveness
How these are sampled
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

2025-10-11 · 142026-10-14 · 21
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-09-01 · The repository has a site deploy workflow

pkgdown site last built 2026-09-01

CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)

Installing collinear adds 66 packages (37 with compiled code, 67 MB of source tarballs). Heaviest: stringi 11 MB, sf 9.3 MB, ggplot2 6.0 MB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer, Copyright holder · added in 1.1.0

Maintainer since 1.0.1 (2023)

Listed in earlier versions (1)
Blas Benito
no longer listed · 1.0.1
Releases (7)

Pick two releases to compare their code metrics.

  • 3.0.2Latest
    record
    2026-06-04 · current release · diff ↗
  • 3.0.1
    record
    2026-05-07 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 3.0.0
    record
    2025-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 more
    added 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
  • R
    R 4.5.0 released · 2025-04-11
  • 2.0.0
    record
    2024-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_rnorm
    added 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
  • R
    R 4.4.0 released · 2024-04-24
  • 1.1.1
    record
    2023-12-08 · diff ↗
  • 1.1.0
    record
    2023-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.1
    record
    2023-10-24
  • R
    R 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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for collinear version 3.0.2 [Data set]. HJJB, LLC. Data release v2026-10-19. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy