NEWS.md

collinear 2.0.0

Warning: This version includes several breaking changes.

Main Changes

Function preference_order()

Function collinear()

Function cor_select()

Function cor_df()

Function vif_select()

Function target_encoding_lab() and Companion Functions

Other Changes

collinear 1.1.1

Hotfix of issue with solve(tol = 0) in systems with no large double support (noLD). This one wasn't fun.

collinear 1.1.0

Added argument "smoothing" to target_encoding_mean() function to implement original target encoding method.

Added alias f_rf_rsquared() to the function f_rf_deviance().

Added column "vi_binary" to vi as a binary version of "vi_mean".

Added function auc_score() to compute the area under the curve of predictions from binary models.

Added function case_weights() to compute case weights when binary responses are unbalanced.

Added function f_rf_auc_balanced() to be used as input for the f argument of preference_order() when the response is binary and balanced.

Added function f_rf_auc_unbalanced() to be used as input for the f argument of preference_order() when the response is binary and unbalanced.

Added function f_gam_auc_balanced() to be used as input for the f argument of preference_order() when the response is binary and balanced.

Added function f_gam_auc_unbalanced() to be used as input for the f argument of preference_order() when the response is binary and unbalanced.

Added function f_logistic_auc_balanced() to be used as input for the f argument of preference_order() when the response is binary and balanced.

Added function f_logistic_auc_unbalanced() to be used as input for the f argument of preference_order() when the response is binary and unbalanced.

Fixed issue with perfect correlations in vif_df(). Now perfect correlations are replaced with 0.99 (for correlation == 1) and -0.99 (for correlation == -1) in the correlation matrix to avoid errors in solve().

Added the example dataset toy, derived from vi, but with known relationships between all variables.

Fixed issue in function cor_df() where many cases would be lost because the logic to remove diagonals was flawed, as all pairs with correlation == 1 were being removed.

Fixed issue in functions cor_select() and vif_select() where ignoring predictors and using only df would lead to empty selections.

collinear 1.0.2

This version fixes bugs in two functions: cor_select() and cor_df()

cor_select()

cor_df()

collinear 1.0.1

Re-submission after minor CRAN comments.

Changes:

collinear 1.0.0

First functional version of the package submitted to CRAN.



Try the collinear package in your browser

Any scripts or data that you put into this service are public.

collinear documentation built on April 12, 2025, 1:36 a.m.