Below compares the performance of the R function ICC::ICCbare
between the current and the previous package versions. The main change between v2.2.1 and 2.3.0 was to greatly improve the non-standard evaluation of all functions in the ICC
package. I try and get at how this might affect the time it takes to run ICC::ICCbare
in the code below. First, I load the two versions of the function (cut and pasted from the package tarballs) as well as the two versions of ICC::ICCest
(which is the main ICC calculation function) for comparison. Then I use the R package microbenchmark
to time the various functions. I then strip the ICCbare
functions down to what was changed between versions (the interpretation of the function arguments and set up) to hone in on any changes to the speed that may have arisen from the changes.
First, create a function to make a data.frame
with variables and data