sample_size_norm_global
calculates the power if the time of the final
analysis is given and otherwise the sample size.
The computed power for effect_size
is an approximate lower bound.
Sample size is also calculated on the basis of the bound.
sample_size_norm_global(
initial_test = 0,
sample_size = TRUE,
effect_size = 0,
time = 0,
target_power = 0.8,
final_time = 0,
tol_sample_size = 1e-05,
input_check = TRUE
)
It returns the sample size (when sample_size = TRUE
) or the power (when sample_size = FALSE
).
Designate the initial working test generated by work_test_norm_global
function.
If TRUE
, the function will return the sample size required by the globally efficient adaptive design to have the power of target_power
. If FALSE
, the function will return the power when the final interim analysis and the final analysis are conducted at time
and final_time
, respectively.
The effect size, on the basis of which the power or sample size calculation will be performed. In globally efficient designs, any real value is allowed.
The time of the current analysis.
The power, on the basis of which the sample size calculation will be performed.
The time of the final analysis.
The precision in calculation of the sample size.
Indicate whether or not the arguments input by user contain invalid values.
adaptive_analysis_norm_global
for example of this function.