Simulate the p-values of the frequentist test
Source:R/analysis_operating_characteristics.R
simulate_test_p_values.RdGenerates n_replicates trials and returns the p-value of the
test in each one. Returning the p-values rather than the decisions lets the
power be read off at any significance level without re-simulating.
Usage
simulate_test_p_values(
target_data,
frequentist_test,
theta_0,
alternative,
simulation_config,
n_replicates
)