| individual_predictive_equiv {LogRegEquiv} | R Documentation |
individual_predictive_equiv function
Description
This function takes two logistic regression models M_A, M_B,
test data, significance level \alpha and allowed flips ratio
r. It checks whether the models produce equivalent log-odds for
the given test set and returns various figures.
Usage
individual_predictive_equiv(model_a, model_b, test_data, r = 0.1, alpha = 0.05)
Arguments
model_a |
logistic regression model |
model_b |
logistic regression model |
test_data |
testing dataset |
r |
ratio of allowed 'flips' (defaults to 0.1) |
alpha |
significance level |
Value
equivalenceAre models
M_A,M_Bproducing equivalent log-odds for the given test data? (boolean)test_statisticThe test statistic
critical_valuea level-
\alphacritical value the testxi_barMean
\xivalue for the testdelta_thetaCalculated equivalence parameter
p_valueP-value
[Package LogRegEquiv version 0.1.5 Index]