View source: R/individual_predictive_equiv.R
individual_predictive_equiv | R Documentation |
This function takes two logistic regression models M_A, M_B, test data, significance level α and allowed flips ratio r. It checks whether the models produce equivalent log-odds for the given test set and returns various figures.
individual_predictive_equiv(model_a, model_b, test_data, r = 0.1, alpha = 0.05)
model_a |
logistic regression model M_A |
model_b |
logistic regression model M_B |
test_data |
testing dataset |
r |
ratio of allowed 'flips' (defaults to 0.1) |
alpha |
significance level α (defaults to 0.05) |
equivalence
Are models M_A,M_B producing equivalent log-odds for the given test data? (boolean)
test_statistic
The test statistic
critical_value
a level-α critical value the test
xi_bar
Mean ξ value for the test
delta_theta
Calculated equivalence parameter
p_value
P-value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.