Compute Bayes optimal w-function
wfabz(theta, mu, t2, s2, alpha = 0.05)value of theta being tested
prior mean of theta
prior variance of theta
population variance
level of test
This function computes the value of w that minimizes the acceptance probability of a biased level-alpha test for a normal population with known variance, under a specified prior predictive distribution.