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