This function runs Power / Type I error simulations for an arbitrary test with a control parameter
benchmarkP(controlValues = 0, getP, nRep = 10, alpha = 0.05, plot = T,
parallel = F)
a vector with a control parameter (e.g. to vary the strength of a problem the test should be specific to)
the test to be benchmarked - this should be a function that takes one of the controlValues as an input, and returns a p-value
number of replicates per level of the controlValues
significance level
whether to do a plot
whether to use parallel computations. Possible values are F, T (parallel cores set to number of cores in the computer -1), or an integer number for the number of cores that should be used