performance_equiv {LogRegEquiv} | R Documentation |
performance_equiv function
Description
This function takes two logistic regression models ,
test data, significance level
and acceptable score
degradation
. It checks whether the models perform
equivalently on the test set and returns various figures.
Usage
performance_equiv(
model_a,
model_b,
test_data,
dv_index,
delta_B = 1.1,
alpha = 0.05
)
Arguments
model_a |
logistic regression model |
model_b |
logistic regression model |
test_data |
testing dataset |
dv_index |
column number of the dependent variable |
delta_B |
acceptable score degradation (defaults to 1.1) |
alpha |
significance level |
Value
equivalence
Are models
producing equivalent Brier scores for the given test data? (boolean)
brier_score_ac
Brier score on the testing data
brier_score_bc
Brier score on the testing data
diff_sd_l
SD of the lower Brier difference
diff_sd_u
SD of the upper Brier difference
test_stat_l
equivalence boundary for the test
test_stat_u
equivalence boundary for the test
crit_val
a level-
critical value for the test
delta_B
Calculated equivalence parameter
p_value_l
P-value for
p_value_u
P-value for