f_logistic_auc_unbalanced: AUC of Binomial GLM with Logit Link and Case Weights
Description
Fits a quasibinomial GLM model y ~ x with case weights when y is an unbalanced binary response with values 0 and 1 and x is numeric. It uses the function case_weights() to weight 0s and 1s according to their frequency within y.
Usage
f_logistic_auc_unbalanced(x, y, df)
Value
Area Under the Curve
Arguments
x
(required, character string) name of the predictor variable.
y
(required, character string) name of the binary response variable.
df
(required, data frame) data frame with the columns 'x' and 'y'.
data(vi)
#subset to limit example run timevi <- vi[1:1000, ]
f_logistic_auc_unbalanced(
x = "growing_season_length", #predictor y = "vi_binary", #binary response df = vi
)