compdist(a, b, model, output, lambda1, lambda2, trim, strat1, strat2)
compare
to calculate the comparison
distribution of strategy 2 against strategy 1. If trim == TRUE
, a
truncated distribution consisting of +/- 2 * interquartile range around the
median precision ratio.The victory rate for linear regression is the left tail probability with a cut-off of 1. The victory rate for logistic regression instead taken at a cut-off of 0. For more details, refer to the accompanying PDF document.
If output == TRUE
the function will plot a histogram of the distribution
and a scatterplot of the precision (SSE or -2 log likelihood) of strategy 2 against
strategy 1. Points that lie below the red or blue line represent trials in which
strategy 2 outperformed strategy 1 (the victory rate).