This runs test_one function for many replicates, usually 10,000, for example, to generate the type2 error rate for one constituent study (not for end user).
1 2  test.n(r_events_control, n_sample_size_control,
n_sample_size_treated, OR_hat, n, alpha)

r_events_control 
Number of events in untreated 
n_sample_size_control 
Sample size in untreated group 
n_sample_size_treated 
Sample size in treated group 
alpha 
Type1 error rate. 
n 
Number of iterations used to generate constituent study power; suggest use 10,000. 
OR_hat 
Summary odds ratio from metaanalysis 
Type2 error for one constituent study
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.