test.n: This runs test_one function for many replicates, usually 10,000, for example, to generate the type-2 error rate for one constituent study (not for end user).
Description
This runs test_one function for many replicates, usually
10,000, for example, to generate the type-2 error rate
for one constituent study (not for end user).
Usage
test.n(r_events_control, n_sample_size_control, n_sample_size_treated, OR_hat, n, alpha)
Arguments
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
n
Number of iterations used to generate
constituent study power; suggest use 10,000.
OR_hat
Summary odds ratio from meta-analysis
Value
Type-2 error for one constituent study