This function estimates the power of test routines that calculate p value(s)
power_newtest(TS, f, xparam, yparam, TSextra, alpha = 0.05, B = 1000)A matrix of power values
routine to calculate test statistics.
routine that generates data.
values of first parameter under the alternative hypothesis.
values of second parameter under the alternative hypothesis.
list passed to TS.
=0.05 type I error.
= 1000 number of simulation runs to estimate the power.