R-squared between a response and a predictor. Fastest option to compute preference order.
See also
Other preference_order:
auc_score()
,
case_weights()
,
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_rsquared()
,
preference_order()
Examples
data(vi)
#subset to limit example run time
vi <- vi[1:1000, ]
f_rsquared(
x = "growing_season_length", #predictor
y = "vi_mean", #response
df = vi
)
#> [1] 0.8112105