View source: R/performance_equiv.R
| performance_equiv | R Documentation | 
This function takes two logistic regression models M_A, M_B, test data, significance level α and acceptable score degradation δ_B. It checks whether the models perform equivalently on the test set and returns various figures.
performance_equiv( model_a, model_b, test_data, dv_index, delta_B = 1.1, alpha = 0.05 )
model_a | 
 logistic regression model M_A  | 
model_b | 
 logistic regression model M_B  | 
test_data | 
 testing dataset  | 
dv_index | 
 column number of the dependent variable  | 
delta_B | 
 acceptable score degradation (defaults to 1.1)  | 
alpha | 
 significance level α (defaults to 0.05)  | 
equivalenceAre models M_A,M_B producing equivalent Brier scores for the given test data? (boolean)
brier_score_acM_A Brier score on the testing data
brier_score_bcM_B Brier score on the testing data
diff_sd_lSD of the lower Brier difference BS^A-δ_B^2BS^B
diff_sd_uSD of the upper Brier difference BS^A-δ_B^{-2}BS^B
test_stat_lt_L equivalence boundary for the test
test_stat_ut_U equivalence boundary for the test
crit_vala level-α critical value for the test
delta_BCalculated equivalence parameter
p_value_lP-value for t_L
p_value_uP-value for t_U
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.